Private Sub days_after_AfterUpdate()
If IsNull(Me![Combo119]) Then
Me![Date Due] = DateAdd("d", Me![Seq], Me![Date Due])
Else
DLookup("[Miledate]", "Mile1", Me![Date Due].Value = Me![Combo119].Value) = Me![Date Due].Value = DateAdd("d", Me![Seq], Me![Date Due].Value)
End If
End Sub
The Me![Combo119] are what im trying to get to look up the values based on whats in the fields already but it keeps asking for a permanent value to lookup is there a way to get it to check whats in the list box and look that up?
If IsNull(Me![Combo119]) Then
Me![Date Due] = DateAdd("d", Me![Seq], Me![Date Due])
Else
DLookup("[Miledate]", "Mile1", Me![Date Due].Value = Me![Combo119].Value) = Me![Date Due].Value = DateAdd("d", Me![Seq], Me![Date Due].Value)
End If
End Sub
The Me![Combo119] are what im trying to get to look up the values based on whats in the fields already but it keeps asking for a permanent value to lookup is there a way to get it to check whats in the list box and look that up?