Which Event property should I use to refresh subform data?

G

Guest

I have a combo box on an Order Details subform which doesn't display the
correct drop-down list (for selecting subclients of the agent placing the
order) unless you hit F9 to refresh the data each time you go to a different
record on the Orders table. To avoid having to do that I assume I need to set
an Event property somewhere on either the parent form or the subform but I'm
confused as to which Event property that should be, and on which form.

I guess a macro (to requery the subform?) would then do the trick, but I'd
prefer entering the necessary VBA code if somebody could maybe also give me a
lead there.

I'd be very grateful for a bit of guidance here.
 
G

Guest

Use the On Current event of the from to refresh the combo, write the code

Me.[ComboName].Requery
 

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

Top