Subform requery

klwu

Brainy!!
Local time
Tomorrow, 06:17
Joined
Sep 13, 2004
Messages
47
Listbox requery

Hi,

I need some help on this. I have a form that used to display suppliers information, and I have a listbox to display the products supplied by a specific supplier.....what I want to do is that, I want the listbox to requery whenever the user select different supplier....Could someone guide me on this?

I have attached a print screen, I hope you all understand what I mean..
 

Attachments

Last edited:
This should automatically happen if the master/child fields are correctly set up between the main form and subform.

Having said that, to requery the listbox manually use the following code on the After Update event of the Supplier Ref No.

Code:
Forms!MainFormName!SubformName.Form.ListboxName.Requery
 

Users who are viewing this thread

Back
Top Bottom