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

Refresh data button for a subform? 1

Status
Not open for further replies.

winston01

Programmer
May 31, 2005
37
US
Thank you for reading.

I would like to crate a button that refreshes the subform data only. The command button for "Refresh data" refreshes the entire form . Is there a code that will refresh the subform data only?

Thank you
 
Code:
[Forms]![MainFormName]![SubFormName].[Requery]
 
Thank you Mike, I appreciate your help.

Where do I put this code?

Thank you!
 
You can put this code several places. One thing to do would be create a button on your form, and then create a click_event for the button containing this code.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top