Erika,
> If DCount("*", "Tbl_Orders", "CustomerID='" & Me!CustomerID& "'" AND
> "Cdxdix", "CustomerID", "Cdxdix='" & Me!Cdxdix & "'") > 1 Then
> etc.
The Dcount and criteriea need to be repeated...
ex.
If Dcount(something) >1 And Dcount(something else) >1 Then....

Signature
hth
Al Camp
Candia Computer Consulting - Candia NH
http://home.comcast.net/~cccsolutions
There are 10 types of people in the world.
Those who understand binary, and those who don't.
> Hi everybody,
>
[quoted text clipped - 29 lines]
>
> Erika
Ami - 23 Jul 2006 19:59 GMT
Al Camp ha scritto:
> Erika,
>
[quoted text clipped - 5 lines]
> ex.
> If Dcount(something) >1 And Dcount(something else) >1 Then....
Hi, I had already tried it this way, I get no error message, but
something is not working all the same, because whichever value I enter
in cdxdx field I keep getting an error message saying this is a
duplicate, even if I know for sure that there is no duplicate at all!
Since both records can be duplicated if alone, but not as a
combination, I thought I could put together the two conditions and
check them as a single dcount.
Any idea how I could accomplish this?
Thanks
Erika