Hello All,
I need some help. I am trying to run the following code and I keep getting the error message " A RunSql action requires an argument consisting of an SQL statement". I have no idea why its not recorgnising strSQL as an SQL statement
strSQL = "SELECT COUNT(*) FROM HSMum WHERE [MumHSReferenceNumber]=" & List2.Value & ";"
Call DoCmd.SetWarnings(False)
Call DoCmd.RunSQL(strSQL)
Call DoCmd.SetWarnings(True)
Thanks for your help.
I need some help. I am trying to run the following code and I keep getting the error message " A RunSql action requires an argument consisting of an SQL statement". I have no idea why its not recorgnising strSQL as an SQL statement
strSQL = "SELECT COUNT(*) FROM HSMum WHERE [MumHSReferenceNumber]=" & List2.Value & ";"
Call DoCmd.SetWarnings(False)
Call DoCmd.RunSQL(strSQL)
Call DoCmd.SetWarnings(True)
Thanks for your help.