Execute query only when tab (subform is active)

Sniper-BoOyA-

Registered User.
Local time
Today, 13:54
Joined
Jun 15, 2010
Messages
204
Good Morning,

As you may remember, i am having some problems with a graph on a subform. After a couple of days of trying several 'solutions' i tried to make a input criteria where the user can enter a ProctorID, which filters the graph and shows the graph of the given proctor.

Which works great.

But heres the thing, everytime i open the 'Motherform' it also executes all the queries, and yes, it also asks for a proctorID.

Is there a way to only execute a query when the tab (subform) of the graph is active?

Cheers in Advance!
 
Thanks m8.

Problem solved with a simple

Private Sub Form_Load()
Me.Form.Tabsubforms.subformprctrgrfkNEN.RecordSource = queryproctwtrgehgrfkNEN
End Sub

Cheers :)
 
Last edited:

Users who are viewing this thread

Back
Top Bottom