View Single Post
  #2 (permalink)  
Old February 12th, 2008, 11:30 AM
dparsons dparsons is offline
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

The only way you can achieve this is if you put strSQL1 and strSQL2 into an array and made a call like this:

tempstr = strSQL & Cstr(arr[i])

You can not dynamically reference variables in the manner you have laid out above.

hth.

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
.: Wrox Technical Editor / Author :.
Wrox Books 24 x 7
================================================== =========
Reply With Quote