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

Requery subform when main cbo changes

Status
Not open for further replies.

johnnybwis

Technical User
Mar 12, 2002
12
US
I have a subfrom that runs a query on a cbo in the main form (Pick customer on main form and subform cbo choices are products associated to that customer) but need the subform to requery if the user goes back and changes the mainform cbo. Currently there is a requery on subform on enter and exit which kinda works.
 
In the cbo's After Update Event add the following (I'll call the subform frmProduct_Sub)

Private Sub cbo_AfterUpdate()

frmProduct_Sub.requery

End Sub



John Ruff - The Eternal Optimist :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top