How would I call goTo goHere: from another form? (1 Viewer)

deanvilar

Registered User.
Local time
Today, 14:45
Joined
Mar 27, 2013
Messages
63
Gurus ...

How would I call goTo goHere: from another form?

e.g.:

Code:
Forms![ASSET_DISPLAY]!goTo goHere
 

Galaxiom

Super Moderator
Staff member
Local time
Tomorrow, 07:45
Joined
Jan 20, 2009
Messages
12,853
The procedure must be declared as Public in the form's module.
 

deanvilar

Registered User.
Local time
Today, 14:45
Joined
Mar 27, 2013
Messages
63
i got it .. thanks for the idea

Code:
Forms![ASSET_DISPLAY].goHere
 

Galaxiom

Super Moderator
Staff member
Local time
Tomorrow, 07:45
Joined
Jan 20, 2009
Messages
12,853
Depends on the context. If the form with the public procedure is open as a main form:

Forms!formname.goTo goHere

If it is a subform then it needs to be referenced via the form it is in.

Forms!mianform!subformcontrolname.Form.goTo goHere

Note that it is a method of the form so the operator is dot rather than a bang.

(This assumes goHere is a variable name.)
 

Users who are viewing this thread

Top Bottom