No, but you can use custom functions so all you need is a wrapper function
whose only purpose is to return the value of the variable.
Function GetStrCity() as String
GetStrCity = strCity
End Function
strSQL = "SELECT * from tblCities WHERE " & GetStrCity() & ";"
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.