Charlotte Foust
cfoust at infostatsystems.com
Wed Jan 29 10:30:00 CST 2003
Susan, You can also give the formA a public property called something like "CalledFrom". Then you can use a variety of methods to populate that property: set it directly from the calling form, set it using the openargs argument, etc. I generally do that with my forms so that when the form closes, I can simply navigate back to the the CalledFrom object. That approach allows you to do some fairly complex navigation with multiple objects open in a database. Charlotte Foust -----Original Message----- From: Susan Zeller [mailto:szeller at cce.umn.edu] Sent: Wednesday, January 29, 2003 6: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