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

Refresh Snapshot control on subform

Status
Not open for further replies.

edluke

MIS
Jul 5, 2001
26
US
I have a suform which contains the Snapshot Viewer control. The snapshot viewer is linked to a file which gets updated depending on a choice made on the main form. When the choice is changed on the main form even though the file the snapshot viewer is linked to has changed the control remains the same. I havn't found a way to refresh the control. If it was on the main form i could simply close the form and reopen it, but what can i do with a subform.

thanx for the help
 
well, i think i found at least a solution that works, not sure if there is an easier way.
from the main form if i change source of the sub form to nothing, then change it back to the original subform it refreshes the report shown in the snapshot viewer control.

Me.SubFormName.SourceObject = ""
Me.SubFormName.SourceObject = "NameOfForm"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top