R
ridders
Hi
I am trying to use an update SQL statement to clear the values of several
text fields and change a Boolean field Attended to False
I get error 3075 when I run the SQL statement:
strSQL4 = "UPDATE tblParentAppointments SET tblParentAppointments.PupilID =
""," & _
" tblParentAppointments.ParentID = "",
tblParentAppointments.Student = ""," & _
" tblParentAppointments.ParentName = "",
tblParentAppointments.Phone = ""," & _
" tblParentAppointments.Attended = '0'" & _
" WHERE
(((tblParentAppointments.ApptID)=[Forms]![frmParentAppointments]![txtApptID]));"
DoCmd.RunSQL strSQL4
I believe the error is in the Boolean field.
I have tried replacing the '0' with False; 'False' and 0.
The error still occurs
Ideas on how to solve please
NOTE: This all works perfectly as an update query!!!
I am trying to use an update SQL statement to clear the values of several
text fields and change a Boolean field Attended to False
I get error 3075 when I run the SQL statement:
strSQL4 = "UPDATE tblParentAppointments SET tblParentAppointments.PupilID =
""," & _
" tblParentAppointments.ParentID = "",
tblParentAppointments.Student = ""," & _
" tblParentAppointments.ParentName = "",
tblParentAppointments.Phone = ""," & _
" tblParentAppointments.Attended = '0'" & _
" WHERE
(((tblParentAppointments.ApptID)=[Forms]![frmParentAppointments]![txtApptID]));"
DoCmd.RunSQL strSQL4
I believe the error is in the Boolean field.
I have tried replacing the '0' with False; 'False' and 0.
The error still occurs
Ideas on how to solve please
NOTE: This all works perfectly as an update query!!!