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

Refeshing Data in a Parent-Child Subform.

Status
Not open for further replies.

Rickmister

Programmer
Jun 28, 2002
1
0
0
US
I have created a form with a parent-child relationship. I am using a subform that needs to be refreshed on command. I

need some VBA code that will refresh the data in the subform to reflect immediate changes made.

I've tried several pieces of code, but have had no luck as of yet.

Thanks in advance.
- RS
 
Requery the parent form, and it will automaticall requery all children. Assume the main form is named "frmMain"... use this code:

Forms!frmMain.Requery

Hope that helps...

Rock ON!

Kevin
 
I believe the syntax to requery the sub form is:

forms!MainformName!SubFormControlName.form.requery

If that's not it, it's something close to that. Let me know if it doesn't work and I'll look it up at work tomorrow. _________
Rott Paws

...It's not a bug. It's an undocumented feature.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top