O
Opal
I am trying to delete the data in one field
in a table via a module as follows:
Dim dbObject As DAO.Database
Dim strQuery As String
Dim HoldUnsafeTally As Variant
HoldUnsafeTally = Forms!frmDriveAudit!subfrmUnsafe.Form!
UnsafeTally.Value
Set dbObject = CurrentDb
strQuery = "UPDATE Unsafe " & _
"SET UnsafeTally = Null " & _
"WHERE UnsafeTally = " & Forms!frmDriveAudit!subfrmUnsafe.Form!
UnsafeTally
dbObject.Execute strQuery, dbFailOnError
I get the following error:
Syntax error (missing operator) in query expression 'UnsafeTally ='.
and for the life of me cannot figure out why.... :-S
Can anyone help?
in a table via a module as follows:
Dim dbObject As DAO.Database
Dim strQuery As String
Dim HoldUnsafeTally As Variant
HoldUnsafeTally = Forms!frmDriveAudit!subfrmUnsafe.Form!
UnsafeTally.Value
Set dbObject = CurrentDb
strQuery = "UPDATE Unsafe " & _
"SET UnsafeTally = Null " & _
"WHERE UnsafeTally = " & Forms!frmDriveAudit!subfrmUnsafe.Form!
UnsafeTally
dbObject.Execute strQuery, dbFailOnError
I get the following error:
Syntax error (missing operator) in query expression 'UnsafeTally ='.
and for the life of me cannot figure out why.... :-S
Can anyone help?