K
KingTravis via AccessMonster.com
Hi,
I'm working on a hire program at the min and seem to be a *bit* stuck
what i need to do is avoid hire dates overlapping one another, for example,
DOA = date of agreement
DOA Serial No Hire start Hire return
01/04/2009 12345 67890 01/05/2009 - 10/05/2009 Confirmed agreement
01/04/2009 12345 67890 01/05/2009 - 05/05/2009 NO
02/04/2009 12345 67890 20/04/2009 - 01/05/2009 NO
03/04/2009 12345 67890 10/05/2009 - 12/05/2009 NO
05/04/2009 12345 67890 11/05/2009 - 14/05/2009 YES
06/04/2009 12345 67890 24/04/2009 - 30/04/2009 YES
the very first example is a saved record, the rest are different attempts at
hiring the same bit of equipment. i have an idea in my head of what to do,
the problem is getting it out of my head in actually getting it to work!!!!!
for every hire agreement record
if ((current serial no = other serial no) AND (current hire start = other
hire start))
error message
else
save record
end if
end for
any help or pointers in the right direction would be greatly appreciated,
again!!! and thanks in advance!!
I'm working on a hire program at the min and seem to be a *bit* stuck
what i need to do is avoid hire dates overlapping one another, for example,
DOA = date of agreement
DOA Serial No Hire start Hire return
01/04/2009 12345 67890 01/05/2009 - 10/05/2009 Confirmed agreement
01/04/2009 12345 67890 01/05/2009 - 05/05/2009 NO
02/04/2009 12345 67890 20/04/2009 - 01/05/2009 NO
03/04/2009 12345 67890 10/05/2009 - 12/05/2009 NO
05/04/2009 12345 67890 11/05/2009 - 14/05/2009 YES
06/04/2009 12345 67890 24/04/2009 - 30/04/2009 YES
the very first example is a saved record, the rest are different attempts at
hiring the same bit of equipment. i have an idea in my head of what to do,
the problem is getting it out of my head in actually getting it to work!!!!!
for every hire agreement record
if ((current serial no = other serial no) AND (current hire start = other
hire start))
error message
else
save record
end if
end for
any help or pointers in the right direction would be greatly appreciated,
again!!! and thanks in advance!!