I am trying to make a form that tells the user how many days they have until a certain date.
This is what I have done so far:-
Private Sub txtInstallDate_AfterUpdate()
Me.txtToday.Value = Now()
Me.txtWhen = DateDiff("d", Me.txtToday, Me.txtInstallDate, vbMonday, vbFirstJan1) & " Working days until " & Me.txtRouterID & " " & Me.txtEdgeID & " are Installed at " & Me.txtSiteIndex & "- " & Me.txtSiteName
End Sub
This works. The text box tells the user how many days until the install date.
How do I get the text box to change and do the relevant calculation for the current record, as I move through the records, because at the moment it only displays the message for the last record I updated.
This is what I have done so far:-
Private Sub txtInstallDate_AfterUpdate()
Me.txtToday.Value = Now()
Me.txtWhen = DateDiff("d", Me.txtToday, Me.txtInstallDate, vbMonday, vbFirstJan1) & " Working days until " & Me.txtRouterID & " " & Me.txtEdgeID & " are Installed at " & Me.txtSiteIndex & "- " & Me.txtSiteName
End Sub
This works. The text box tells the user how many days until the install date.
How do I get the text box to change and do the relevant calculation for the current record, as I move through the records, because at the moment it only displays the message for the last record I updated.