Hi All
Trying to write a query using an "Iif" statement.
The database I am creating is for hair salon appointment managment.
The thing is, stylists can book more than one client in a given slot. Eg 10:00 - 11:00 they have Client "A" and 10:30 - 11:00 they have Client "B".
I would like to write a query where if they were to book another client in - it would flag and say another appointment has been booked.
I cant figure out how to do this because I will be refering to the "same thing"
If [StartTime] is between ([StartTime] AND [EndTime] - of another record) Then ......
Can you please help??
Many Thanks
Dan
Trying to write a query using an "Iif" statement.
The database I am creating is for hair salon appointment managment.
The thing is, stylists can book more than one client in a given slot. Eg 10:00 - 11:00 they have Client "A" and 10:30 - 11:00 they have Client "B".
I would like to write a query where if they were to book another client in - it would flag and say another appointment has been booked.
I cant figure out how to do this because I will be refering to the "same thing"
If [StartTime] is between ([StartTime] AND [EndTime] - of another record) Then ......
Can you please help??
Many Thanks
Dan
Comment