LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 45
Default Error Msg: Can't open anymore databases

I *thought* my code was closing the connections when it was done, but
apparently it isn't. I can't figure out why, but I was wondering if there was
a way to detect the connection state to a database... I usually use something
like this to set my database variable:

Dim db As Database

With that, I was thinking there would be a way to drop in a line like:

If db.Connection = True Then db.Close

Am I on the right track?
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
excel 2007 won't open anymore excelyn Excel Discussion (Misc queries) 3 November 26th 08 10:42 PM
Import Access Data from 3 databases into 1 worksheet *ERROR* I need help please Excel Discussion (Misc queries) 0 April 22nd 08 07:29 PM
EXCEL:Can't open any file without error saying it's ALREADY open??? Crackles McFarly Excel Worksheet Functions 1 November 1st 07 02:22 AM
databases Alma Excel Worksheet Functions 0 October 17th 07 06:45 PM
Databases Az Stretch Excel Discussion (Misc queries) 0 March 29th 06 09:36 AM


All times are GMT +1. The time now is 10:16 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"