F
Flora
I'm getting an MVB run-time error '3075': syntax error (missing
operator)...
This is the code I'm trying to use:
If (Not IsNull(DLookup("[PCP-SP-Ref]", "[tbl_atc_per_PCP-SP-Ref]",
_
"[PCP-SP-Ref] = '" & _
Forms!frm_TESTING_DETAILS_AND_RESULTS![PCP-SP-Ref] & _
"' AND " & "[Exception_Ref_No] = " & _
Forms!frm_TESTING_DETAILS_AND_RESULTS![Exception_Ref_No] & _
" AND [tbl_atc_per_PCP-SP-Ref].atc = 'Other.'"))) = False Then
Form_frm_TESTING_DETAILS_AND_RESULTS.Other_Action_Taken.Enabled
= False
Else
Form_frm_TESTING_DETAILS_AND_RESULTS.Other_Action_Taken.Enabled
= True
End If
I have spent hours looking at this code trying to find the problem.
Any advice?
Thanks for any help you can give.
operator)...
This is the code I'm trying to use:
If (Not IsNull(DLookup("[PCP-SP-Ref]", "[tbl_atc_per_PCP-SP-Ref]",
_
"[PCP-SP-Ref] = '" & _
Forms!frm_TESTING_DETAILS_AND_RESULTS![PCP-SP-Ref] & _
"' AND " & "[Exception_Ref_No] = " & _
Forms!frm_TESTING_DETAILS_AND_RESULTS![Exception_Ref_No] & _
" AND [tbl_atc_per_PCP-SP-Ref].atc = 'Other.'"))) = False Then
Form_frm_TESTING_DETAILS_AND_RESULTS.Other_Action_Taken.Enabled
= False
Else
Form_frm_TESTING_DETAILS_AND_RESULTS.Other_Action_Taken.Enabled
= True
End If
I have spent hours looking at this code trying to find the problem.
Any advice?
Thanks for any help you can give.