[AccessD] Public variable losing contents

Drew Wutka DWUTKA at marlow.com
Tue Mar 11 13:02:22 CST 2003


Are you ending your code anywhere...that will reset your globals.

Drew

-----Original Message-----
From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net]
Sent: Tuesday, March 11, 2003 5: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



More information about the AccessD mailing list