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

Accumulating Listbox 1

Status
Not open for further replies.

andzejek

MIS
Sep 1, 2007
154
US
How to create a listbox to which I will add records. Let say I have a three commandbuttons which will create three recordset with onclick event. How to create a listbox which will add records after each clicking?

Andrew
 
Yes, bu you see, I have one recordset which I'm showing in the listbox and I want ad some records from another recordset.
 
Change the row source of the listbox to a query that retrieves the new record too.
 
Here is the problem, how to change this query so it will be retrives both old and new records
 

Union queries are your friend!

Select [Whatever] from Table1
Union Select [Whatever] from Table2


Requery the list box each time there is a change.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top