T
tboyce
I have a staff data db. I am trying to record staff holidays that are
requested. I have a table called "StaffDetail" links to another table
"Holidays" with a "FromDate" field and an EndDate field along with a
totaldays taken field. I would like to enter two dates when staff request a
holiday to check if another member of staff will also be off during these
dates. Being as I have 2 fields i cannot do a between and end date, also if
someone requests for a date which falls outside the start and end date the
query may not pick up the conflicting dates. I need to know what the formula
is that will enable me to enter the dates and show me the other staff members
with conflicting holiday requests. I have read other questions but nothing
like this one. I have tried
=datediff([Enter from date] "StartDate", "d" - date()-14) but get a syntax
error. Can anybody assist me. Many thanx
requested. I have a table called "StaffDetail" links to another table
"Holidays" with a "FromDate" field and an EndDate field along with a
totaldays taken field. I would like to enter two dates when staff request a
holiday to check if another member of staff will also be off during these
dates. Being as I have 2 fields i cannot do a between and end date, also if
someone requests for a date which falls outside the start and end date the
query may not pick up the conflicting dates. I need to know what the formula
is that will enable me to enter the dates and show me the other staff members
with conflicting holiday requests. I have read other questions but nothing
like this one. I have tried
=datediff([Enter from date] "StartDate", "d" - date()-14) but get a syntax
error. Can anybody assist me. Many thanx