Hi
This is my code. The client can have more than one venue listed on their record in the databse so therefore duplicate records are created in the query.
I would like to say...
If the client has chosen any ONE OF the venues listed then show their record once.
SELECT InitEnq.AllocatedNumber, InitEnq.BrideForeName, InitEnq.BrideSurName, InitEnq.GroomForeName, InitEnq.GroomSurName, InitEnq.EMail, InitEnq.Email2, InitEnq.Date INTO GatestreetInvites
FROM venue INNER JOIN ((InitEnq LEFT JOIN chosenVen ON InitEnq.AllocatedNumber = chosenVen.AllocatedNumber) RIGHT JOIN SugVen ON InitEnq.AllocatedNumber = SugVen.AllocatedNumber) ON venue.Venue_id = SugVen.VenueID
WHERE (((InitEnq.Date)>#4/1/2004#) AND ((venue.VenueName)="Hartsfied Manor") AND ((chosenVen.FormSent) Is Null)) OR (((InitEnq.Date)>#4/1/2004#) AND ((venue.VenueName)="Bury court barn") AND ((chosenVen.FormSent) Is Null)) OR (((InitEnq.Date)>#4/1/2004#) AND ((venue.VenueName)="Gatestreet Barn") AND ((chosenVen.FormSent) Is Null)) OR (((InitEnq.Date)>#4/1/2004#) AND ((venue.VenueName)="Parkside School") AND ((chosenVen.FormSent) Is Null)) OR (((InitEnq.Date)>#4/1/2004#) AND ((venue.VenueName)="Manor House School") AND ((chosenVen.FormSent) Is Null));
Thankyou.