update listbox

G

golan

hello; i have a form with combox (renter) and 2 listboxs (contract and
assets).
the data to the lisboxs come from aqeries that dependent the data in the
combox.
when i choose a renter(comobox) i see in first list box the contract and at
the second i see the the assets. but, if i not click on the listboxs the data
is not update the table.
there is any macro or code or somthing else to update them or to click them
automatically when i update the combobox?
 
J

John W. Vinson

hello; i have a form with combox (renter) and 2 listboxs (contract and
assets).
the data to the lisboxs come from aqeries that dependent the data in the
combox.
when i choose a renter(comobox) i see in first list box the contract and at
the second i see the the assets. but, if i not click on the listboxs the data
is not update the table.
there is any macro or code or somthing else to update them or to click them
automatically when i update the combobox?

The purpose of a listbox is to allow the user to make a selection. It sounds
like you don't need to make a selection - that the listboxes only display one
row!?

If so, your table design may be incorrect. It all starts with the tables: what
tables do you have in the database? How are they related? What is the
Recordsource of this form? And most importantly, what are the control sources
of these two listboxes? If all you're doing is copying a contract and assets
value from one table to store them redundantly in another table, you're on the
wrong track!
 
J

JString

Not sure if I'm understanding your problem correctly, but if you need the
listbox to be updated with current data from the table (and not the other way
around), you can use a second, hidden form that is opened in dialog mode to
run the code that gets the current data and refreshes the listbox.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Requery 2
listbox 6
Empty Listbox 2
listbox selected(0) causing error Error 3020 1
click event on listbox 1
open form with no data 11
Combo box question 3
table and form question 8

Top