Query date (1 Viewer)

Number11

Member
Local time
Today, 17:40
Joined
Jan 29, 2020
Messages
133
Hi,

So I currently have a query that looks at a table with appointment requests against a another table Appointment Booked and then another Table Appointments completed.


What I need to do is only show appointment requests if the Appointment Booked and Appointment completed dates are greater than the Appointment Request date

So if an appointment was requested on 01.05.2020 but the Appointment Booked has an appointment date for 14.04.2020 and Appointment completed 15.04.2020 this would show records as it was created after the other dates?
 

arnelgp

error reading drive A:
Local time
Tomorrow, 00:40
Joined
May 7, 2009
Messages
9,925
what common field do you have for each table? appointmentRef, appointmentID, etc.

you join your tables on that field on the query with the condition that you havr.
 

bob fitz

AWF VIP
Local time
Today, 17:40
Joined
May 23, 2011
Messages
3,972
Try:
>[Appointment Request]

as the criteria for "Appointment Booked" column and the "Appointment completed" column
 

Number11

Member
Local time
Today, 17:40
Joined
Jan 29, 2020
Messages
133
what common field do you have for each table? appointmentRef, appointmentID, etc.

you join your tables on that field on the query with the condition that you havr.
"Customer Ref Number"
 

Number11

Member
Local time
Today, 17:40
Joined
Jan 29, 2020
Messages
133
So i have the query linked by the "Customer Ref Number" with criteria "is not null" - this bring me a list of all appointment requested not booked and not completed, but if an appointment completed was before the new requested appointment, this query currently does not show the new appointment requested as its been removed due to the older completed appointment
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top Bottom