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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Path question in DB set-up 1

Status
Not open for further replies.

Monguse

Programmer
Mar 11, 2002
63
US
Now that I learned how to make a DB in code, How can I use a path statement in this line of code (see below) so that the DB is created in the same directory (or created a sub-directory) the as the main program.

sDataBaseName = "C:\Printing.mdb"

I looked through the FAQ's and did some searching in the MSDN (but this is hard to search sometimes) and have not found the answer yet.

Any ideas?

Thanks :)
 
Like this

sDataBaseName = App.Path & "\Printing.mdb" Anything is possible, the problem is I only have one lifetime.[thumbsup2]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top