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

Second Combo Box not requerying subform

Status
Not open for further replies.

liltechy

Programmer
May 17, 2002
145
US
I have a main form that has two combo boxes and a subform. When I select a IO number in cbo1 it pulls all the records for that IO number in my subform. I then want cbo2 to look at the vendor number field in the subform (after cbo1 has been selected) and put in the drop list only the vendor names that have vendor numbers listed in the subform. Then when I select a vendor in cbo2, I need the subform to requery with that vendors invoices only. I have had no success in achieving this. Please, please help, any help would be appreciated.
 
Put this in the After_update event Procedure of the second combo box

me![YourSubformName].Requery

DougP, MCP
 
I put in the After Update event procedure and it is still not working. Once the IO number is selected and the subform shows all the invoices and vendor numbers for that IO number, how do I get cb02 to have in its drop down on the vendor names that match the vendor numbers in the subform? and after the vendor name is selected from cb02 how do I get cb02 to requery the subform to show only the vendor invoices where the vendor name was selected from cb02?

liltechy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top