Combo Box default in form

ssmith001

Registered User.
Local time
Today, 14:37
Joined
Jun 6, 2006
Messages
29
I have a combobox called cboMaxVal. When I open a form called frmMain, I want value in the cboMaxVal to be set to the query qryGetMaxVal.

Currently when I open the form, I need to click on the dropdown arrow before I can see the value from the query. Is there a way to have it appear in the combobox without having to click the dropdown?
 
Yes. You set this "Default Value" in the properties of the combo box.

Regards
 
Set it to what? The name of the query?
 
The "Default Value" property of a combo box allows you to initially set the value you want displayed in the combo box window when the form is opened.

If this happens to be the name of a query that you want displayed, then place that in the default value property.

Regards
Mark
 
For some reason it's not working. Please take a look at the attachment.
 

Attachments

This is not right. I wan't the combobox default to be the result of the query called QRY, which in this case if 5.
 

Users who are viewing this thread

Back
Top Bottom