These global variables are defined in a standard module, not a form module?
If so, then they should retain their values unless something you're doing is
causing the project to be reset. If they're in a form or report module,
then they will lose their values every time the form or report is closed.
--
Dirk Goldgar
(remove NOSPAM from reply address)
Quote:
> All global variables are erased when i open a form !!!!
> Is someone could say me why?
> I have :
> Access 97
> Variable :
> All global are in one module
> Public variable as String 'for examples
> I launch a code a the launch of my database (Macro Autoexec - Runcode)
> which load from a table all global variables
> Form:
> all my forms are created by docmd.runcommand accmdnewautoform
> i save them with docmd.save acform, "frmTest"
> When i launch a form
> All global variable are erased before each event sub
> ("OnOpen","OnClick"..)
> Have i commit a mistake ? (or is it Bill?)
> Thanks
> Sent via Deja.com http://www.deja.com/
> Before you buy.