变量作为搜索条件
新手啦,感谢赐教。用VB2012和SQLServer。objDataAdapter. ID, NAME, AMOUNT,p0G.GeID,REFERENCE FROM" & PA & "JOIN poG ON" & PA & ".GeID" & "WHERE firstName ='Benny'"
上述语句能正确执行,但是把‘Benny’换成变量,"WHERE firstName=” & strInput 从InputBox()输入姓名,例如Mike,出错提示:Invalid column name 'Mike'