PLEASE -- I urgently need help?? -- Isn't there someone can help me with this error??
Hello All,
when I declare a dim on a form in the general area is it default private to the form public to all forms?
when I unload the form, will these dims disappear?
I'm wondering because I created some ADO.recordsets and when I close the form (click on the x) and reopen the form I get an error stating that the recordsets are still open.
I have since put statements to close the ado.recordsets in the form unload but what the hell? How can they be open if I close the form anyways? cause when I reopen the form it has to redeclare the variables doesn't it? or does form1.show only unhides it?
what there like no garbage collection?
Thanks !
Marci Sarwan ([email protected])
Don't Declare as Dim...poor standard
If you only want the variable to be available to the current form declare it as Private. If you want the variable available to all forms/procedures in the project declare it as Public or Global. Note Global is being phased out in version 7.
The database stays connected when you can the project coz you have called it into memory, made the connections, also close on project/form unload.
Don't get me onto record locking, MS suck with this one. Sorry just love bitching about that.