Inquisitor99
Programmer
I need to check if a database is running from a specific drive and directory. I tried using the "CurDir" function, but that does not give me the path that the database is currently located in, it appears to give me the last path that it was located in or created in, but it does not change no matter what drive I open the database from.
Here is a sample of the code I'm using:
If CurDir="F:\DatabaseFiles" then
Msgbox "Please do not use the database from this location"
End If
Is there a different command available to check the drive and directory that the database is "currently" running under?
Thanks.
Here is a sample of the code I'm using:
If CurDir="F:\DatabaseFiles" then
Msgbox "Please do not use the database from this location"
End If
Is there a different command available to check the drive and directory that the database is "currently" running under?
Thanks.