Hi again everyone,
From my point of view this should work... it doesn't.
I have 2 date fields on a form (StartDate_rForm & CompDate_rForm). I simply want to return a value in a text box if the diffrence between the 2 dates is less than 2 days or more.
Here's my code:
Right now all that's returned in txtReq48 is a -1 value... 55 and 32 are random values I was hoping to see in my text box.
From my point of view this should work... it doesn't.
I have 2 date fields on a form (StartDate_rForm & CompDate_rForm). I simply want to return a value in a text box if the diffrence between the 2 dates is less than 2 days or more.
Here's my code:
Code:
Private Sub Command80_Click()
If DateDiff("d", [StartDate_rForm], [CompDate_rForm]) <= 2 Then
Me.txtReq48.value = 55
Else
Me.txtReq48.value = 32
End If
End Sub
Right now all that's returned in txtReq48 is a -1 value... 55 and 32 are random values I was hoping to see in my text box.