How to Calculate Late Date

B

benjamin.weierbach

What's up Everyone?

I really need some help. I've been pulling the hair out of my head
trying to research how to calculate a late date. Here is what I'm
trying to do:


DATE VOUCHER SUBMITTED: 1 MAY 06
VOUCHER LATE?: YES


If the voucher is 5 days past the "DATE VOUCHER SUBMITTED" date, I'd
like to have it autmatically update another field named "VOUCHER LATE"
either with a yes/no answer. Is there a way to make this happen? If
there is, I should be able to query this info and create a report
right? Thanks in advance for your help.
 
M

Marshall Barton

What's up Everyone?

I really need some help. I've been pulling the hair out of my head
trying to research how to calculate a late date. Here is what I'm
trying to do:


DATE VOUCHER SUBMITTED: 1 MAY 06
VOUCHER LATE?: YES


If the voucher is 5 days past the "DATE VOUCHER SUBMITTED" date, I'd
like to have it autmatically update another field named "VOUCHER LATE"
either with a yes/no answer. Is there a way to make this happen? If
there is, I should be able to query this info and create a report
right?

If that rule is inviolatem then you have no need for a late
field. You can query on the 5 day rule by using a criteria
on the submitted date:
<= DateAdd("d", -5, Date())

If you save the late calculation, then it will become
incorrect until you do some other action to recalculate it.

The display on the form can use a similar expression to
display the yes/no whenever you view the record:
=IIf([Date Submitted]<=DateAdd("d",-5,Date()),"Yes","No")
 

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