Hi,
I'm trying to use dcount to see if the 2 fields combined are unique in a query. The user doesn't like the error message that is returned from SQL Server (Access frontend and SQL Server backend) using the unique index for the 2 fields. Both fields are char (text in Access) in Sql Server.
I currently have the following code
thanks in advance for your help.
Sydney
I'm trying to use dcount to see if the 2 fields combined are unique in a query. The user doesn't like the error message that is returned from SQL Server (Access frontend and SQL Server backend) using the unique index for the 2 fields. Both fields are char (text in Access) in Sql Server.
I currently have the following code
Code:
If DCount("*", "qryInvestorList", _
"InvestorID='"& Forms!frmInvestorMatrixCopy!InvestorID & "' And "MSP_Category='" & Forms!frmInvestorMatrixCopy!MSP_Category &"') <> 0 Then
thanks in advance for your help.
Sydney