|
-
Jul 31st, 2000, 11:33 AM
#1
Thread Starter
Junior Member
Hey all,
I'm trying to compact a database in VB6. It won't let me do that until the .mdb file is closed. I can get the database closed with code in most cases, but not after I view a report generated by the Data Report tool. When the report is generated, the database will not close until the application is terminated. How in the world can I do this?
The name of my command in the Data Environment is Catalog, so I've tried:
Catalog.Connections.Item(1).Close
and all variations of that I can think of...
Please help!!!
-
Jul 31st, 2000, 01:34 PM
#2
Lively Member
I'm not sure if this would help but have you tried setting your DataEnvironment = Nothing?
Code:
Set DataEnvironment1 = Nothing
just a thought...
Dr_Evil
Senior Programmer
VS6 EE
VS.NET EA
-
Jul 31st, 2000, 01:38 PM
#3
Thread Starter
Junior Member
Thanks for the reply. I already tried that, but nothing. Anybody with more ideas?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|