S
SeanMatyas
Im hoping this can be done...I thank you in advance for your
attention...
We keep track on our database of dates that companies are working in
our state... if they go over 180 days in a calender year, they need a
license... they can be in the state multiple times I have no problem
using datediff and getting the number of days of each "work order". I
can even sum the datediffs together. However, our old database did
not reject overlapping dates by the same company. Thus there are
numerous overlaps (ex: One company is in the state from 1/15/07 to
3/23/07 and again from 1/18/07 to 4/15/07 on two different
projects).
This leads right into my question: Is there a way to disregard
overlapping work order dates when figuring out total days? Or, since
i am building a new database for this information, is there a way to
prevent a user from entering an overlapping date in the first place?
(i know thats more of a form question, i think)
Thank you in advance.
Sean
attention...
We keep track on our database of dates that companies are working in
our state... if they go over 180 days in a calender year, they need a
license... they can be in the state multiple times I have no problem
using datediff and getting the number of days of each "work order". I
can even sum the datediffs together. However, our old database did
not reject overlapping dates by the same company. Thus there are
numerous overlaps (ex: One company is in the state from 1/15/07 to
3/23/07 and again from 1/18/07 to 4/15/07 on two different
projects).
This leads right into my question: Is there a way to disregard
overlapping work order dates when figuring out total days? Or, since
i am building a new database for this information, is there a way to
prevent a user from entering an overlapping date in the first place?
(i know thats more of a form question, i think)
Thank you in advance.
Sean