L
Leslie
I created a query to check for duplicate records so I could send the user a
message by way of a form I created. The sql is:
SELECT [ALL Policies].CustomerNo, [ALL Policies].ApplicationNo, [ALL
Policies].Carrier
FROM [Working Table] INNER JOIN [ALL Policies] ON ([Working Table].Carrier =
[ALL Policies].Carrier) AND ([Working Table].CustomerNo = [ALL
Policies].CustomerNo) AND ([Working Table].ApplicationNo = [ALL
Policies].ApplicationNo);
The code behind my button is:
If (Me.CustomerNo = Null) Then
DoCmd.Close "Duplicate"
DoCmd.RunMacro "Assign Macros.RetrieveInfo"
End If
When there is no match is both files, I thought I would get a null value in
the customerNo field. No matter what I do, it always has a customer number.
I want to close the "Duplicate" form is no match was found and procede with
the program. Anyone have any suggestions.
message by way of a form I created. The sql is:
SELECT [ALL Policies].CustomerNo, [ALL Policies].ApplicationNo, [ALL
Policies].Carrier
FROM [Working Table] INNER JOIN [ALL Policies] ON ([Working Table].Carrier =
[ALL Policies].Carrier) AND ([Working Table].CustomerNo = [ALL
Policies].CustomerNo) AND ([Working Table].ApplicationNo = [ALL
Policies].ApplicationNo);
The code behind my button is:
If (Me.CustomerNo = Null) Then
DoCmd.Close "Duplicate"
DoCmd.RunMacro "Assign Macros.RetrieveInfo"
End If
When there is no match is both files, I thought I would get a null value in
the customerNo field. No matter what I do, it always has a customer number.
I want to close the "Duplicate" form is no match was found and procede with
the program. Anyone have any suggestions.