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

Requery Subform

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Can anyone help with the correct VB script to requery a subform?

This is one of the methods that I've tried:-

Form_frmSupplier.Requery
Form_frmSupplier!frmSupplierDetails.Requery

frmSupplier is the main form and frmSupplierDetails is the subform.

This seems very simple, but I cannot get it to work.

Many Thanks
 
Set the focus on the control in your subform, and Requery that control....
 
i had this problem before
to refer to a subform you have to use the '.form' operator

this tells Access that the subform control is a form
you can also then refer to controls on that form

eg.

Forms!frmSupplier!frmSupplierDetails.Form.Requery
refers to the whole form

Forms!frmSupplier!frmSupplierDetails.Form![supplier].Requery
refers to a control called supplier on the subform
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top