Matty
...the Myth Buster
- Local time
- Yesterday, 22:16
- Joined
- Jun 29, 2001
- Messages
- 396
Hey All,
I have two tables -- tblClient and tblAuthorization. I've made a form with tblClient as the recordsource, with a subform using tblAuthorization. Since only clients with a certain code (N-02) can have authorizations, I've added that as WHERE criteria on my main form (WHERE Code = "N-02"). Now comes my problem:
If a client's authorization expires, their N-02 code is supposed to be removed. But I still want to show this client on my main form, so I can see those expired authorizations. I thought I could change my WHERE clause to find N-02 clients that also have a record in tblAuthorization, but I get duplicate records (since clients can have multiple authorizations).
I thought I could just use the SELECT DISTINCT syntax in my recordsource, but it causes it to become uneditable.
Is there any way for me to have my main recordsource check the child table for records without giving me duplicate records?
I have two tables -- tblClient and tblAuthorization. I've made a form with tblClient as the recordsource, with a subform using tblAuthorization. Since only clients with a certain code (N-02) can have authorizations, I've added that as WHERE criteria on my main form (WHERE Code = "N-02"). Now comes my problem:
If a client's authorization expires, their N-02 code is supposed to be removed. But I still want to show this client on my main form, so I can see those expired authorizations. I thought I could change my WHERE clause to find N-02 clients that also have a record in tblAuthorization, but I get duplicate records (since clients can have multiple authorizations).
I thought I could just use the SELECT DISTINCT syntax in my recordsource, but it causes it to become uneditable.
Is there any way for me to have my main recordsource check the child table for records without giving me duplicate records?