CharlieT302
Instructor
Hi,
I have the following statement which is producing a Syntax Error (missing variable).
The statement has the following parameters:
*Provider Number = Number field
*Conttype1,Conttype2,Conttype3 are text fields.
The formula checks to see if any of the three text fields (above) already contains the entry of Primary Contact for the active provider; only one is allowed.
I am unsure about the syntax. Any help?
if DCount("Provider_Number", "tbl_OAA_Provider_Contact_Info", "[PROVIDER_NUMBER] = & Me.PROVIDER_NUMBER" & " And Conttype1='Primary Contact' or Conttype2='Primary Contact' or Conttype3='Primary Contact'")>=1 then...
I have the following statement which is producing a Syntax Error (missing variable).
The statement has the following parameters:
*Provider Number = Number field
*Conttype1,Conttype2,Conttype3 are text fields.
The formula checks to see if any of the three text fields (above) already contains the entry of Primary Contact for the active provider; only one is allowed.
I am unsure about the syntax. Any help?
if DCount("Provider_Number", "tbl_OAA_Provider_Contact_Info", "[PROVIDER_NUMBER] = & Me.PROVIDER_NUMBER" & " And Conttype1='Primary Contact' or Conttype2='Primary Contact' or Conttype3='Primary Contact'")>=1 then...