This will give you the full path and the database name (this is from Access 97 dao)
To get the mdb name
L = 1
lSlash = 1
Do Until L = 0
L = InStr(L, Temp, "\"
If L <> 0 Then
lSlash = L
L = L + 1
End If
Loop
print Left$(Temp, lSlash) gives the path
D:\utils
print right$(temp,len(temp)-lslash) gives the mdb
Time and Billing.mdb
Peter Meachem
peter@accuflight.com
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.