[AccessD] How to Tell Form which other form it was opened by

Susan Zeller szeller at cce.umn.edu
Wed Jan 29 08:47:00 CST 2003


Thanks, Doris. I found enough info in Help on OpenArg to make this work perfectly.  You saved the day, again!

--Susan

-----Original Message-----
From: Mike and Doris Manning [mailto:mikedorism at ntelos.net]
Sent: Wednesday, January 29, 2003 8:25 AM
To: accessd at databaseadvisors.com
Subject: RE: [AccessD] How to Tell Form which other form it was opened
by


OpenForm has an OpenArg option.  I use this all the time in the situation
you described.  I just pass in something as simple as a string that I can
decode in the OnOpen event of the receiving form.

Doris Manning
Database Administrator
Hargrove Inc.
www.hargroveinc.com


-----Original Message-----
From: accessd-admin at databaseadvisors.com
[mailto:accessd-admin at databaseadvisors.com] On Behalf Of Susan Zeller
Sent: Wednesday, January 29, 2003 09:16 AM
To: AccessD ListServ (E-mail)
Subject: [AccessD] How to Tell Form which other form it was opened by


In my A2k application, I have code on the on_open event of FormA.  FormA can
be opened by either FormB or FormC.  Depending on which form causes FormA to
open, different things needs to happen.  I'm not sure how to let FormA know
which form opened it.  

The only thing I could think of was to use the TAG property.  But, I can't
set the TAG for FormA until it is open, but by then the on_open code has
already run.  

Is this a place for a global variable?  Other ideas?

TIA.

--Susan

Susan B. Zeller
Office of Information Systems
College of Continuing Education
University of Minnesota
306 Wesbrook Hall
77 Pleasant Street SE
Minneapolis, MN 55455
Phone:  612-626-4785
Fax:  612-625-2568


_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd

_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd



More information about the AccessD mailing list