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

update subform

Status
Not open for further replies.

shelspa

Technical User
Dec 13, 2001
66
US
This may have been covered but I didn't find it. I want my subform to update when data is entered on the main form. The data displayed on both is from the same table. The subform happens to be a chart. Of course, charts use a query. These details are probably what is complicating it. Ideas?
 
Issue the refresh method on the subform, whenever you want it to re-read the data. I don't know which event on your main form you'll want to use.

Sub Form_Change()
me!{subform-control}.FORM.Refresh
End Sub

I think that's the syntax... 78.5% of all statistics are made up on the spot.
Another free Access forum:
More Access stuff at
 
So in the after update event of one of the fields on the main form I could do this:

Sub Form_Change()
me!{chtNordikoThickness}.FORM.Refresh
End Sub


..or put this somewhere else? Correct syntax? thanks

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top