query results based on loaded form

action

Registered User.
Local time
Today, 13:33
Joined
May 29, 2003
Messages
89
I am trying display the results of a query in a list box based from the record viewed in a form. I can get the correct listbox results for the 1st record displayed by running the query as the form loads but other records don't update. I need to run the query each time a new record is displayed, can this be done without code or does anybody have some code that will do it?

Cheers
 
Action,

How are you "running the query as the form loads"? In code? If so, cut the section of code that does this in the load event and paste it into the form's current event. If not, and if your listbox has a query for its rowsource, put somethng like this in the form's current event.
Code:
	Me.TheListBoxName.Requery
Regards,
Tim
 
That worked, thanks Tim
 
thanks

thanks Pat, you guys are an endless source of learning.
 

Users who are viewing this thread

Back
Top Bottom