> If they're text boxes, try:
>
> If 2 > DateDiff("d", Me.DueDate, MeOpenedDate) Then
>
> If that doesn't work, try
>
> If 2 > DateDiff("d", CDate(Me.DueDate), CDate(MeOpenedDate)) Then
>
> --
> Doug Steele, Microsoft Access MVP
>
http://I.Am/DougSteele> (no e-mails, please!)
>
>
> "Terri" <starpegasus[ at ]discussions.microsoft.com> wrote in message
> news:214EF587-A3F1-478A-BB27-26A9A4B2A62A[ at ]microsoft.com...
> > They are text boxes on my form both being a medium date that pick up the
> > current date as a default with the ability to be modified.
> >
> > "Douglas J. Steele" wrote:
> >
> >> How have DueDate and OpenedDate been declared, and how are they getting
> >> their values?
> >>
> >> --
> >> Doug Steele, Microsoft Access MVP
> >>
http://I.Am/DougSteele> >> (no e-mails, please!)
> >>
> >>
> >> "Terri" <starpegasus[ at ]discussions.microsoft.com> wrote in message
> >> news:B15669D6-8F72-4D1F-A0DB-871A32B80DD2[ at ]microsoft.com...
> >> >I am trying to test between two dates using:
> >> >
> >> > If 2 > DateDiff("d", DueDate, OpenedDate) Then
> >> > MsgBox "The due date .......
> >> >
> >> > but it always tests positive no matter what the dates are. Can anyone
> >> > tell
> >> > me what I am doing wrong?
> >> >
> >> > Thank you, Terri
> >>
> >>
> >>
>
>
>