I have a query that selects records from four different tables.
The mother table contains personal information and three daughter tables are related to the first via the mother table's primary keywhich can have no entry per person, one entry per person or multiple entries per person.
A query that selects records form the mother table and information regarding them from the daughter tables. All entries have the date.
The user defines which criteria they want from the daughter tables from combo-boxes in a form which can be null (selects all records regardless of the criteria), a particular value, or "No record" which selects those with a null primary key.
Tis makes 27 different combinations all of which I have coded separately and it sort of works, except that I can not exclude records with multiple values appearing multiple times. I am already using SELECT DISTINCT
which removes duplicates only,
How can I select only the most recently added entry?
The mother table contains personal information and three daughter tables are related to the first via the mother table's primary keywhich can have no entry per person, one entry per person or multiple entries per person.
A query that selects records form the mother table and information regarding them from the daughter tables. All entries have the date.
The user defines which criteria they want from the daughter tables from combo-boxes in a form which can be null (selects all records regardless of the criteria), a particular value, or "No record" which selects those with a null primary key.
Tis makes 27 different combinations all of which I have coded separately and it sort of works, except that I can not exclude records with multiple values appearing multiple times. I am already using SELECT DISTINCT
which removes duplicates only,
How can I select only the most recently added entry?