|
-
Dec 2nd, 2003, 09:22 PM
#1
Thread Starter
Lively Member
booting up database?
hi all,
can someone tell me how to do this
i have an adodc1 component on my form, without going into the properties, how can i tell my form to look for the database called "\folder\test.mdb" inside its app.path?
tanx!
Aiden
aiden,
[email protected]
__________________
The human race is a smart one, but we still don’t yet understand that if there is no food in the fridge the first time, there wont be food in the fridge the 2nd 3rd or hundredth time you check -- (…always hoping)
-
Dec 2nd, 2003, 10:37 PM
#2
VB Code:
If fileexists("folder\test.mdb") Then
'perform db operations
End If
Private Function fileexists(strfilepath As String) As Boolean
If Dir(App.Path & strfilepath) <>"" Then
fileexists = True
Else
fileexists = False
End If
HTH
-
Dec 2nd, 2003, 10:38 PM
#3
You may have to change "folder\test.mdb" to "\folder\test.mdb"
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
|