Arthur Fuller
artful at rogers.com
Tue Mar 11 06:52:00 CST 2003
A misplaced END statement? Does everything compile fine? Have you tried setting a break point on a change to the public variable? And finally, you might want to use a static function rather than a public variable. A. -----Original Message----- From: accessd-admin at databaseadvisors.com [mailto:accessd-admin at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: March 11, 2003 6:33 AM To: accessd at databaseadvisors.com Subject: [AccessD] Public variable losing contents To all, I have a Public variable that is declared in the start-up form of my A2k Database called pubCallingForm, and I have a button on a staffing form that when clicked performs various tasks and also assigns the variable the form name. (i.e. pubCallingForm = "frmStaffingFullDay"), and then opens another form on top of the calling form. The form that is called allows the user to enter special pay rates (two fields only), and then is supposed to return the values back to the specific fields on the calling form. But when the special pay rates form is called, pubCallingForm is set back to null. Anybody have any idea as to why this is happening ? Thanks in advance Paul Hartland __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just £6.99 a month for your first 3 months, that's HALF PRICE! And then it's just £14.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com