Connecting Tech Pros Worldwide Help | Site Map

Calculate Date Difference and display message box

  #1  
Old December 31st, 2005, 12:05 PM
jbsfe
Guest
 
Posts: n/a
I have a table used to enter the last date a project was updated.

When updating via a form, I need to compare the new date against the
last date in the record. If the difference is greater than 14, I need
to display a message box alerting the user. Secondly, they must then
enter comments in the comment field explaing the varience.

I'm not sure how to get the last value and compare it to the current
value.

Any help would be greatly appreciated.

Thank You,

Jimmy

  #2  
Old December 31st, 2005, 02:05 PM
Rick Brandt
Guest
 
Posts: n/a

re: Calculate Date Difference and display message box


jbsfe wrote:[color=blue]
> I have a table used to enter the last date a project was updated.
>
> When updating via a form, I need to compare the new date against the
> last date in the record. If the difference is greater than 14, I need
> to display a message box alerting the user. Secondly, they must then
> enter comments in the comment field explaing the varience.
>
> I'm not sure how to get the last value and compare it to the current
> value.
>
> Any help would be greatly appreciated.
>
> Thank You,
>
> Jimmy[/color]

DMax("DateField", "TableName", "Criteria (if needed)")

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com


Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Get Time Difference RN1 answers 3 October 4th, 2008 03:35 PM
Problem on a report..,? christian answers 3 November 13th, 2005 01:57 AM
Time-keeping with Access 2000 Michael Bulatovich answers 6 November 12th, 2005 05:57 PM