G
Guest
I am trying to use Dlookup to get the date from the previous record and make
the date of the new record that date + 1 day...here is my code. Clearly, I
don't understand the dlookup procedure
Private Sub Form_Current()
Dim TempDate As Date
If Me.NewRecord And IsNull(Me.DOS) Then
TempDate = DLookup("[DOS]", "InputData", "[DOS] = " & Me.DOS)
Me.DOS.Value = TempDate + 1
End If
End Sub
the date of the new record that date + 1 day...here is my code. Clearly, I
don't understand the dlookup procedure
Private Sub Form_Current()
Dim TempDate As Date
If Me.NewRecord And IsNull(Me.DOS) Then
TempDate = DLookup("[DOS]", "InputData", "[DOS] = " & Me.DOS)
Me.DOS.Value = TempDate + 1
End If
End Sub