PDA

View Full Version : Solved: Database Drive



gsdonald
06-02-2006, 01:18 AM
Hi all,
Does anyone know a simple code that would return the letter "C" or "D" or whatever, that the database was being running from?
Thanks ...
gsdonald

Apps
06-02-2006, 04:49 AM
Sub xPath()
xDrive = Left(CurrentProject.Path, 1)
'Debug.Print xDrive
End Sub

That should sort you out ok.
Regards,
Apps

gsdonald
06-02-2006, 07:49 AM
Thanks.
That works perfectly.

Ciao