So I have searched through the forums and tried numerous things to fix this code, but the line I have bolded below continues to be highlighted yellow and I keep getting the Runtime Error 3144. Any suggestions on what is wrong with the code would be greatly appreciated! Thanks in advance!
DoCmd.SetWarnings False
DoCmd.RunSQL "UPDATE tbl_ESW_ThirdPartyPaymentsAssigned SET TPPaymentID = " & Forms![Third Party Accounts]!frmThirdPartyPayments.Form![TPPaymentID] & " WHERE SelectedCamper = -1 AND TPPaymentID Is Null"
DoCmd.RunSQL "UPDATE tbl_ESW_ThirdPartyPaymentsAssigned SET TPPaymentID = NULL WHERE SelectedCamper = 0"
DoCmd.SetWarnings True
DoCmd.SetWarnings False
DoCmd.RunSQL "UPDATE tbl_ESW_ThirdPartyPaymentsAssigned SET TPPaymentID = " & Forms![Third Party Accounts]!frmThirdPartyPayments.Form![TPPaymentID] & " WHERE SelectedCamper = -1 AND TPPaymentID Is Null"
DoCmd.RunSQL "UPDATE tbl_ESW_ThirdPartyPaymentsAssigned SET TPPaymentID = NULL WHERE SelectedCamper = 0"
DoCmd.SetWarnings True