How to find busy days for an object?

  • Thread starter JC via AccessMonster.com
  • Start date
J

JC via AccessMonster.com

Hi,

Appreciate whatever help you coul provide on this.

I've got a table with, say, a text field "subjectName" and two date fields
"BusyFrom" and "BusyTO".

How can I find if "subjectName" is already busy next time I want to enter a
record for him that overlaps (even if partially) some dates already existing
(he's obviously busy all days between the two dates)?

Regards,
 
J

John Spencer (MVP)

SELECT SubjectName
FROM TableName
WHERE BusyFrom <= [TheEndTime] And BusyTo >= [TheStartTime]
 
J

JC via AccessMonster.com

John,
your tip put me into the right path to find the solution
Many thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top