Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Shell a database in My Documents

Status
Not open for further replies.

v55fish

Technical User
Jun 20, 2001
1
AU
HI
I am trying to shell a database from the My Documents folder and I am getting the error "Can't open c:\My.mdb".
I assume this is because of the space between My Documents.
Does anyone know a way to get around this or how to let Access 2000 know their is a space in my pathname.
Code Example:
Dim stAppName As String

stAppName = "MSACCESS.EXE C:\My Documents\MyDatabase.mdb"
Call Shell(stAppName, 1)

Any ideas would be appreciated.
Thanks
Tanya
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top