mikebrewer
Registered User.
- Local time
- Today, 17:47
- Joined
- Sep 28, 2011
- Messages
- 93
Okay guys, apparently I've just got stupid but I can't seem to solve this one...
I'm trying to query a table that has an appointment start date and an appointment end date (ApptStart & ApptEnd, respectively).
I'm trying to write a query that would select all the records that would fall on a chosen date. So if a user selects today (4/14/2016), we would see any records where the appointments could come across that date. If the appointment start date is less than that date and the appointment end date is greater, i want to show it. if the end date falls on the date, i want to show it. if the appt start and end are on the same day, i want to show it. I keep writing myself in circles using multiple OR statements in my Query and I know it can't be as hard as I'm making it. I think I've just gone dense for the day.
Any suggestions?
:banghead::banghead:
I'm trying to query a table that has an appointment start date and an appointment end date (ApptStart & ApptEnd, respectively).
I'm trying to write a query that would select all the records that would fall on a chosen date. So if a user selects today (4/14/2016), we would see any records where the appointments could come across that date. If the appointment start date is less than that date and the appointment end date is greater, i want to show it. if the end date falls on the date, i want to show it. if the appt start and end are on the same day, i want to show it. I keep writing myself in circles using multiple OR statements in my Query and I know it can't be as hard as I'm making it. I think I've just gone dense for the day.
Any suggestions?
:banghead::banghead: