Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Computer Forums > Programmers Lounge > Programming Discussions » VB DataBase's Presence Check
Closed Thread
Old 06-09-2005, 01:17 PM   #1 (permalink)
 
True Techie

Join Date: Dec 2004

Posts: 145

Mohan Giri

Default VB DataBase's Presence Check

Hi everybody,
I have created a database in Access using VB DAO control. Before proceeding to Data manipulation in the database I want to check if the database is created or not in the specified path. How can I do this? Anyone can help me?

Thanks in advance.

Bye
Mohan Giri is offline  
Old 06-10-2005, 06:47 PM   #2 (permalink)
 
Super Techie

Join Date: Feb 2005

Posts: 262

jinexile

Default

Mohan when your DAO control connects to the database and it cannot connect/find it it will throw an exception. In VB6 I used the ADODB control (I found it much superior to the others) so I'm not sure exactly what type of error the DAO control throws. A simple way to check is to move your access database and try running the program.
__________________
AMD Athlon 64 3000+ (Overclocked to 3300+)
ASUS K8V-Deluxe
1GB PC3200 DDR
2x200GB Seagate SATA RAID 0
BFG 6800GT OC w\\128MB Ram
2x 19\" Samsung 930B LCDs
jinexile is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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