Question : Anyone know how to get a Macro to close Access?

Hey everyone,
I have a couple automated reports that run daily and I have been running into this problem when I use the Macro setting of quit and I get an error Quit was not available. I then tried to run a function that would do Application.Quit and I got the same problem. Can anyone explain how to to do this so I get no errors and it truly closes?

Thanks,
Jester

Access 2003

Answer : Anyone know how to get a Macro to close Access?

If the object are so big, I'd create these objects in the heap (with new operator) and store the pointers in the map. I'd make a class that will manage this store and will have a member of this map. This class may have a Clear() method that will delete all MyLargeObj's. This Clear should be called from the class destructor. This way will allow to hide the implementation of the MyLargeObj even, if it is needed.

Random Solutions  
 
programming4us programming4us