As John pointed out, the BoundColumn property is 1 based, not 0 based
(which the Column collection is...)
Change your BoundColumn to 3.
"Bill" wrote in message
John,
When present, the "S" will be the first character of
the data (FolioID) in the 3rd column. The primary
key is in the first column, a special sort key is in the
2nd column and the "FolioID" is in the 3rd column.
The RowSource is a query that returns the 3
columns with the sorting criteria expressed in
the 2nd column.
The combo's bound column is 3 and I tried
LEFT([cmboRetreats]).Column(2),1)="S"
in the conditional formatting without success.
I put this statement in the combo's OnClick event:
MsgBox Left([cmboRetreats].Column(2), 1)
and it in fact displayed the first character, which
happened to be an "S" as purposely selected.
I'm clueless as to what to try next?
Bill
John W. Vinson said:
The RowSource is comprised of 3 columns
taken from a 3 column table, only one of
which is displayed. Column count is three,
but the column widths are 0";0";1". It is the
3rd column whose table name is "FolioID".
The bound column is entered in the properties
of the combo as 2, as I assume the columns
are zero origin indexing.
Which of the three columns contains the letter S? The Bound Column is
actually
1-based not 0-based.
You may be SEEING an S (from the third column) but Access is perhaps
seeing a
number (the second column); the number will not meet the conditional
formatting criterion. What you might be able to do is use
Expression is: Left([comboboxname].Column(1),1) = "S"
The Column property, unlike the Bound Column property, is in fact zero
based
so this would pull the second column. Use (2) if your S is in the third
(the
visible) column.
--
John W. Vinson [MVP]
Microsoft's replacements for these newsgroups:
http://social.msdn.microsoft.com/Forums/en-US/accessdev/
http://social.answers.microsoft.com/Forums/en-US/addbuz/
and see also
http://www.utteraccess.com