I am not sure what you are trying to do, but if you insert a combo box you can have it look up any records you like from a table. It doesn't matter if the form has a record source or not.
You could also use a parameter query. Set the criteria in the query field to the bound column of the combo box. Then use a dlookup on the query to fill your textbox fields. This might not be the fastest way but it works.
jim
In fact the combo box wizard offers this as one of it's options. When you invoke the wizard, select the option "Find a record on my form..."
You also have the ability to use a combo box to apply a filter...
[tt]
Me.Filter = "YourField = " & Me.YourComboBox
Me.FilterOn = True
[/tt]
Or variation there of.
Note: You need to use quotes for string / text values.
[tt]
Me.Filter = "YourField = " & """ & Me.YourComboBox & """
Me.FilterOn = True
[/tt]
Or you can create your onw SQL statment based on the combo box and use is as a record source.
Thank you to all of you. The option "find a record on my form.." was not working properly due to corruption. I ended up creating a new db, importing all my forms, tables, etc. and things are working fine. Sorry for taking up your time when my real problem was corruption.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.