sunset1215
Registered User.
- Local time
- Tomorrow, 03:55
- Joined
- Apr 7, 2011
- Messages
- 46
Hi all,
I have 2 tables, tblCustomers and tblTest.
tblCustomers
CusID - pk
Customer name
tblTest
TestID - pk
CusID - fk
Test status
I want to prevent users from adding a new test status for a customer when he already has a test status. i'm using a command button to create new test statuses, but i want to disable it when there is a current test status already.
I've tried to use dlookup to check if my pkCusID is already in tblTest as fk, but it's not working.
any help or advice is appreciated.
I have 2 tables, tblCustomers and tblTest.
tblCustomers
CusID - pk
Customer name
tblTest
TestID - pk
CusID - fk
Test status
I want to prevent users from adding a new test status for a customer when he already has a test status. i'm using a command button to create new test statuses, but i want to disable it when there is a current test status already.
I've tried to use dlookup to check if my pkCusID is already in tblTest as fk, but it's not working.
any help or advice is appreciated.