How I will set criterian for combo boxes??

Ramshan

Registered User.
Local time
Today, 12:52
Joined
Aug 17, 2011
Messages
48
Hi,

I am wondering how one will set criterian for combo boxes?
that is for text boxes we use this, where qprop is the text box. If county is in a combo box what the criterian would be?

Like [Forms]![SearchForm].[qprop1] & "*"


Thanks!
 
For a combo you can simply use;
Code:
[Forms]![FormName]![ComboName]
Remember though that this will return the bound column of the combo box.
If you want to match on what is being displayed in the combo, use;
Code:
[Forms]![FormName]![ComboName].[Text]
 
...the above assumes that the combo has it's Limit to list property set to True.
 

Users who are viewing this thread

Back
Top Bottom