Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in Visual Basic only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Today's Posts
Member List
Calendar
Home
Forum
Topic
Visual Basic
Automate closing an Access 2003 database
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
peter1952
New Member
Join Date:
Mar 2010
Posts:
3
#1
Automate closing an Access 2003 database
Mar 13 '10, 11:02 AM
I would like to automate closing an Access 2003 database at the end of running a macro. How can I do this?
kadghar
Recognized Expert
Top Contributor
Join Date:
Apr 2007
Posts:
1302
#2
Mar 13 '10, 05:33 PM
if the VBA code is in access itself:
application.clo se
if you're using an ActiveX object from elsewhere (supose it's Obj1):
set Obj1 = nothing
that should do it.
Comment
Post
Cancel
peter1952
New Member
Join Date:
Mar 2010
Posts:
3
#3
Mar 13 '10, 07:18 PM
Thanks, I get the following error dialog box
---------------------------
Microsoft Visual Basic
---------------------------
Compile error:
Method or data member not found
---------------------------
OK Help
---------------------------
?
Comment
Post
Cancel
kadghar
Recognized Expert
Top Contributor
Join Date:
Apr 2007
Posts:
1302
#4
Mar 13 '10, 07:30 PM
Sorry, my mistake. It should be something like
application.qui t
Comment
Post
Cancel
peter1952
New Member
Join Date:
Mar 2010
Posts:
3
#5
Mar 14 '10, 07:54 AM
Briliant, hat works.
Thank You
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment