I am quite frustrated at not being able to solve this problem in a Db I am developing for my wife.
I have searched through a number of solutions to similar thread questions. I tried using "Distinct" in the SQL statement, Grouping using Max, Min, First and Last all without success.
So my db is a simple 2 table set up with a one to many relationship as follows:
tblPatient Details (RecNo (PK), Surname, FirstName, DOB, Postcode)
tblVisit Details (VisitNo(PK), VisitDate, RecNo(FK), Location, Category, Diagnosis, Drug1, Drug2, etc)
Whenever I run a query I am getting duplicated records of Visit information which should happen. However, I would like to have only one of the visits displaying (first or last doesnt matter.) The Visit No is a unique autonumber.
Can anyone help, any assistance would be greatly appreciated.
So my db is a simple 2 table set up with a one to many relationship as follows:
tblPatient Details (RecNo (PK), Surname, FirstName, DOB, Postcode)
tblVisit Details (VisitNo(PK), VisitDate, RecNo(FK), Location, Category, Diagnosis, Drug1, Drug2, etc)
Whenever I run a query I am getting duplicated records of Visit information which should happen. However, I would like to have only one of the visits displaying (first or last doesnt matter.) The Visit No is a unique autonumber.
Can anyone help, any assistance would be greatly appreciated.