[AccessD] Public variable losing contents

Gustav Brock gustav at cactus.dk
Tue Mar 11 05:44:01 CST 2003


Hi paul

If this is the only purpose of pubCallingForm, you could pass the name
of the calling in OpenArgs when you open the other form. When this
opens, read the name of the calling form from OpenArgs ...

/gustav

> 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 ?




More information about the AccessD mailing list