Programming housekeeping help

Gregc

Board Regular
Joined
Apr 24, 2002
Messages
75
I am somewhat of a hack when it comes to access programming. I can make things happen and do the things I want through programming if I can't figure away through non-programming methods. Should I be unloading anything / clearing memory at some point in time when I use programming to open and close forms, run queries and some miscellaneous other things.

I am just curious if my below par programming methods will bog down my little database after awhile.

Thanks for the advice.

Greg
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Well, without actually looking at your code, I couldn't tell you what you're doing wrong, but I can pretty much assure you that there's almost always more than one way to perform a particular task and the first effort isn't necessarily the best. A couple of things, though:
-Whenever you change any of your code, make sure to Compile it. Post back if you need instructions.
-If you ever make Object References, make sure that you destroy the Object once you've finished using it by:
Code:
Dim My_Object as Some_Object
Set My_Object=New Some_Object
and when finished
Code:
Set My_Object=Nothing
Creating and Destroying objects might be a bit more advanced than your current level, though. Additionally, the Performance Analyzer (Tools->Analyze->Performance) can give you some high-level insight on ways to improve your db.
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,750
Members
448,989
Latest member
mariah3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top