G giedrius Registered User. Local time Today, 02:05 Joined Dec 14, 2003 Messages 80 Dec 14, 2003 #1 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
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
FoFa Registered User. Local time Yesterday, 19:05 Joined Jan 29, 2003 Messages 3,653 Dec 15, 2003 #2 Typically I put an invisible field on the form, and set it to a value depending on where it was called from.
Typically I put an invisible field on the form, and set it to a value depending on where it was called from.
Mile-O Back once again... Local time Today, 01:05 Joined Dec 10, 2002 Messages 11,305 Dec 15, 2003 #3 Send the name of the calling form to the new form in the OpenArgs i.e. Code: DoCmd.OpenForm "MyForm", , , , , , Me.Name
Send the name of the calling form to the new form in the OpenArgs i.e. Code: DoCmd.OpenForm "MyForm", , , , , , Me.Name
G giedrius Registered User. Local time Today, 02:05 Joined Dec 14, 2003 Messages 80 Dec 15, 2003 #4 What if I already am passing an argument? IS there a possibility to pass 2 or more arguments? giedrius
What if I already am passing an argument? IS there a possibility to pass 2 or more arguments? giedrius
Mile-O Back once again... Local time Today, 01:05 Joined Dec 10, 2002 Messages 11,305 Dec 15, 2003 #5 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.
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.
G giedrius Registered User. Local time Today, 02:05 Joined Dec 14, 2003 Messages 80 Feb 9, 2004 #6 Thanks Mile. I somehow lost track of this my question. giedrius