M
Mr. B
I've been seeking the solution to this. But can't figure it out (sounds
simple enough).
When you Populat a ComboBox, you can select the initial displayed items on
startup simply by setting the TEXT to a valide item in the Combobox.
What I want to do is to select the initial listed item to an item based upon a
varrying veriable.
For example, the combobox is populated with a list of Users.
I then have a command line argument with a user name in it.
Application starts up and the Combobox shows their name.
What's really happening is that I do something like the above. But I'm
opening up an MS Access DB (via ADO). But instead of the User name, I have
only a User code number (ie: BRU001 for Bruce, DAV001 for David, etc.)
My combobox lists the User Code. I've a Text Box that displays the correct
user name based upon the user code (cause they are on the same data base row
and are in synch).
But I can't figure out how to select the initial view of the Combobox (always
get the first user code displayed).
Any help will be appreciated.
Regards,
Bruce
simple enough).
When you Populat a ComboBox, you can select the initial displayed items on
startup simply by setting the TEXT to a valide item in the Combobox.
What I want to do is to select the initial listed item to an item based upon a
varrying veriable.
For example, the combobox is populated with a list of Users.
I then have a command line argument with a user name in it.
Application starts up and the Combobox shows their name.
What's really happening is that I do something like the above. But I'm
opening up an MS Access DB (via ADO). But instead of the User name, I have
only a User code number (ie: BRU001 for Bruce, DAV001 for David, etc.)
My combobox lists the User Code. I've a Text Box that displays the correct
user name based upon the user code (cause they are on the same data base row
and are in synch).
But I can't figure out how to select the initial view of the Combobox (always
get the first user code displayed).
Any help will be appreciated.
Regards,
Bruce