Hi,
I've the same problem that "Tikafyre" was facing. I tried to use the code that "Jack Cowley" posted but the problem is that I'm a beginner for using MS access so I don't know how to edit the code to make it useful for me.
In the initial code, it checks that there is no duplicates in the "LastName" in tblCustomers.
In my table I want to do the same but for the OrderNo. But, I want to avoid the duplication in the OrderNo AND the OrderType together. I mean that the OrderNo can be repeated in the table, but not for the same OrderType.
I hope somebody can advise.
Thanks.