Hi all,
At the risk of looking very stupid, can anyone tell me why the following generates an error stating that to run it requires an argument consisting of an sql statement?
Dim dbCurr As DAO.Database
Dim rs As DAO.Recordset
Dim mySQL As String
Set dbCurr = CurrentDb
mySQL = “SELECT PIIN ” & _
“FROM Cams_Piin_Data1 ” & _
“WHERE PIIN_CODE = ‘” & Me![PIIN_CODE] & “‘;”
DoCmd.RunSQL mySQL
Any help would be appreciated.
Thank You