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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Combo box source is Union Query but can't write to it

Status
Not open for further replies.

CTOROCK

Programmer
May 14, 2002
289
US
I have a form where I have a combo box pulling names from a union query. I have the formed bound so I can auto populate the other relevant fields. However, when there isn't a match in the combo box I can't clear the fields and add a record to the query as it is a union query. How can I add a name to it and then have it selectable in the future? After the fields populate and more info is inputed I save the record by coding it through a save button going to another table. Can I unbound the form and do a multiple criteria search in the union query?

thanks in advance for your time

"The greatest risk, is not taking one."
 
You can update the table or tables that the query is based on with SQL run in VBA.


You can unbind the form. You may wish to read:


Although it refers to building a report, you can use the code to build an SQL string.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top