Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

combo box recordsource question

Status
Not open for further replies.

imstuck

MIS
Sep 27, 2000
18
0
0
US
Is there a way to change a combo box's recordsource if an item is not found in the list? I want the user to be able to search another field (but in the same table) if a name is not found in the list under lastname. The other field is an "other name" field. I tried setting the recordsource for the combo box by having the user press a command button, but it gave me an error message saying "object doesn't support this property or method".

How can I accomplish this?? Thanks--

 
this seems to work for me
dim strsql as string
strsql = "select [other name] from mytable"
me.combo0.rowsource = strsql
me.refresh
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top