|
-
Sep 16th, 2005, 09:03 AM
#1
Re: detecting a missing database
I normaly do the following code:
VB Code:
Set FSys = New FileSystemObject
If gstrDBLoc = "" Then gstrDBLoc = App.Path
If gstrDBName <> "" And FSys.FileExists(gstrDBLoc & "\" & gstrDBName) Then
OpenDB
Else
fDBLoc.Show
Exit Sub
End If
If Not FSys Is Nothing Then Set FSys = Nothing
If the database is not there I open a form and allow the user to point me to the new database location. Altough I do not use the data controls you can just exit out with a message if the database is required to be in a specific place.
Sometimes the Programmer
Sometimes the DBA
Mazz1
-
Sep 16th, 2005, 09:32 AM
#2
Re: detecting a missing database
 Originally Posted by GaryMazzone
If the database is not there I open a form and allow the user to point me to the new database location.
Regardless of what method you end up selecting davypipes, this is an outstanding idea! 
(BTW: Why did you double post this question? )
-
Sep 17th, 2005, 09:32 AM
#3
Thread Starter
Junior Member
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
|