Checking where from the form was called

giedrius

Registered User.
Local time
Today, 12:09
Joined
Dec 14, 2003
Messages
80
Hello,

How could I check where from my form was called? I need to trap when the form is called from the switchboard or directly by double-clicking on it in the Forms window.

thanks for any tips,
giedrius
 
Typically I put an invisible field on the form, and set it to a value depending on where it was called from.
 
Send the name of the calling form to the new form in the OpenArgs


i.e.

Code:
DoCmd.OpenForm "MyForm", , , , , , Me.Name
 
What if I already am passing an argument? IS there a possibility to pass 2 or more arguments?

giedrius
 
Separate them with a delimiter and then split them on the other side.

Here's a bit of code I wrote to extract the different parts of a delimited string.
 
Thanks Mile. I somehow lost track of this my question.

giedrius
 

Users who are viewing this thread

Back
Top Bottom