Trying to get this query to run but having issues....errors out on the FROM statememt
I am trying to incoporate a variable in the SELECT statement...the variable is actually a field in the table
Thoughts?
Code:Dim varFieldType As String varFieldType = Combo85 'MsgBox varFieldType Dim MySQL As String 'MySQL = "SELECT dbo_Core2.'" & varFieldType & "' FROM dbo_Core2 GROUP BY dbo_Core2.'" & varFieldType & "';"



LinkBack URL
About LinkBacks


Bookmarks