Conditional Formatting in Combo Box (ACC2007)

M

MeTed

Hi all,

I have a form that has a combo box that grabs customer information from a
Customers table. When the user selects the appropriate company, it stores
the CustID field into the Jobs table. Here's what I'm trying to do. The
users are modifying the Customers table to reflect those who are on credit
hold. What they are doing is adding three asterisks after the CompanyName
so they can easily spot those on credit hold. What they want is to have the
field on the form turn red if the CompanyName contains three asterisks.
I've tried and tried to use Conditional Formatting to so just that, but I
can't seem to get it to work. My guess is because the form is only
displaying the CompanyName (and storing the CustID), my Conditional
Formatting rules aren't working when I try to use that field.

Any clues?

Thx
 
D

Douglas J. Steele

Yes, if you're referring to the combo box by name in your conditional
formatting, then the reference will strictly be to the bound field.

You could always try referring to the name via the Column collection.

NameOfComboBox.Column(1) refers to the value in the second column of the
selected row. (The Column collection starts numbering at 0)
 
M

MeTed

Excellent...works like a charm. Here's what I did for those looking to do
the same:

Right([CboCust].[column](1),3)="***"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top