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:wave:
Printable View
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:wave:
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
You may have to change "folder\test.mdb" to "\folder\test.mdb"