Hi,
I have a few fileds in my database that update themselves "On Current". It is a list of expired dates. The problem is that this information will not update unless I navigate through the record and refresh it in the form. Is there any way for this information to autmaticaly update itself wthout me having to navigate through all of my records in my form to update the information? Thanks Alot!
I have a few fileds in my database that update themselves "On Current". It is a list of expired dates. The problem is that this information will not update unless I navigate through the record and refresh it in the form. Is there any way for this information to autmaticaly update itself wthout me having to navigate through all of my records in my form to update the information? Thanks Alot!
Code:
Private Sub Form_Current()
If Me![Continous Entry] = "-1" Then Me![ExpireDate] = DateAdd("d", 365, Me![Approval Date])
If Me![Daily Entry] = "-1" Then Me![ExpireDate] = DateAdd("yyyy", 0, Me![To])
If Me![Daily Entry] = "0" And Me![Continous Entry] = "0" Then Me![ExpireDate] = Me![ExpireDate] ' This doesn't make sense setting Expire date to expire date
If Me.ExpireDate > Now Then
Me.Status = "Cleared"
Else: Me.Status = "Expired"
End If
End Sub