Hi All,
I am getting error 2342 a RunSQL statement requires and argument Consisting of a SQL stmt when I try to run the below code. Basicall I am prompting the user using an InPutBox for a value then trying to run the query.
Any idea why this won't work?
I am getting error 2342 a RunSQL statement requires and argument Consisting of a SQL stmt when I try to run the below code. Basicall I am prompting the user using an InPutBox for a value then trying to run the query.
Any idea why this won't work?
Code:
strInPutBox = InputBox("Enter the NPI(s) to Retrieve TAX IDs")
DoCmd.RunSQL "select * from SOAP_Incentivized_Worklist where [Prac NPI] = ('" & strInPutBox & "')"