I have a After_Update event on 12 fields (one for each month as follows). The users will add number values into the fields. Is there way to set the after update to prompt the user that they cannot add to the value in this field if it is a previous month???
If Me.Txtinv10 >= Me.Txtinv10 and is previous month from current month
msgbox 'Value cannot be changed"
is what I am trying to obtain - I believe.
Private Sub txtinv10_AfterUpdate()
Forms!frms19_1.AgedSellOffDate = "11/10/2006"
Me.Requery
Me.txtinv11.SetFocus
End Sub
If Me.Txtinv10 >= Me.Txtinv10 and is previous month from current month
msgbox 'Value cannot be changed"
is what I am trying to obtain - I believe.
Private Sub txtinv10_AfterUpdate()
Forms!frms19_1.AgedSellOffDate = "11/10/2006"
Me.Requery
Me.txtinv11.SetFocus
End Sub