A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

variable clean-up after module runs????



 
 
Thread Tools Display Modes
  #1  
Old December 11th, 2009, 04:44 PM posted to microsoft.public.access.forms
Weeble[_2_]
external usenet poster
 
Posts: 27
Default variable clean-up after module runs????

I am new to Access and I am unsure how to clean-up my variables after I am
done with them.

Other programs I have written script for always had a way. I can find
nothing for Access.

Is this needed or am I looking for something that doesn't exist?
  #2  
Old December 11th, 2009, 04:52 PM posted to microsoft.public.access.forms
Arvin Meyer [MVP][_2_]
external usenet poster
 
Posts: 2,310
Default variable clean-up after module runs????

VB and VBA usually clean up after themselves. Do not count on object
variables doing that. I usually close Recordsets and set them and other
objects to "Nothing":

Exit_He
rst.Close
Set rst = Nothing
Set db = Nothing
Set objExcel = Nothing

as an example.
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com

"Weeble" wrote in message
...
I am new to Access and I am unsure how to clean-up my variables after I am
done with them.

Other programs I have written script for always had a way. I can find
nothing for Access.

Is this needed or am I looking for something that doesn't exist?



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:48 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.