Sorry, this is probably really simple but I am struggling.
On one of my forms the data is either provisional or confirmed. If the user adds a date to drillingdate the status automatically updates to confirmed using the following code.
What I would like is if the date is deleted that the status goes back to provisional but I don't know how to code for a blank record. So the code needs to be if drillingdate is blank or empty then change FertRecStatus = -1.
Suggestions please.
On one of my forms the data is either provisional or confirmed. If the user adds a date to drillingdate the status automatically updates to confirmed using the following code.
Code:
Private Sub tbDrillingDate_AfterUpdate()
'when the drilling date is added this code changes the FertRecStatus to confirmed
If (Me.DrillingDate) > 0 Then
Me.FertRecStatus = 0
End If
End Sub
What I would like is if the date is deleted that the status goes back to provisional but I don't know how to code for a blank record. So the code needs to be if drillingdate is blank or empty then change FertRecStatus = -1.
Suggestions please.