MaggieLeatherman
Programmer
HI, I need help with the following code. I need to create my table name on the fly (varAreaTable) and then use it within a query (qdfTest).. But have huge problems with placement of the quotes!! Any help is appreciated.. And if you could point me to any articles talking about using quotes in VBA, that'd be great. Thanks, Maggie
varAreaTable = "Area" & varProjNum
Set qdfTest = .CreateQueryDef("testing", "select * from & '" varAreaTable & "' ")
varAreaTable = "Area" & varProjNum
Set qdfTest = .CreateQueryDef("testing", "select * from & '" varAreaTable & "' ")