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

Variable in string

Status
Not open for further replies.

JohnCR

Technical User
Jun 4, 2004
39
US
Is there a way to use a variable in this string? Something like...

sConnString="DRIVER={Microsoft Access Driver (*.mdb)};" & _
"DBQ= & applipath(errorlog.mdb)"

Is there a way for 'applipath' to be a variable which would just hold a path to a folder (and .mdb file)?

Thanks in advance,

JohnCR
 
Something like this ?
applipath="\path\to\mydir\"
sConnString="DRIVER={Microsoft Access Driver (*.mdb)};" & _
"DBQ=" & applipath & "errorlog.mdb"

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top