D
David Whitaker
I am trying to retrieve the last entry from a field in a record reguardless
if it was the last record or the record previous to that. I am using this;
Private Sub Form_Current()
If IsNull(me.begininv) or me.begininv = "" Then
me.begininv = (DLast("[onendinv]","[pump]"))
End If
End Sub
The problem is is that it doesnt work.
I have tried;
Private Sub Form_Current()
me.begininv = (DLast("[onendinv]","[pump]"))
End Sub
and it still doesnt work.
Any ideals as to why its not working, Am I using the wrong variant?
if it was the last record or the record previous to that. I am using this;
Private Sub Form_Current()
If IsNull(me.begininv) or me.begininv = "" Then
me.begininv = (DLast("[onendinv]","[pump]"))
End If
End Sub
The problem is is that it doesnt work.
I have tried;
Private Sub Form_Current()
me.begininv = (DLast("[onendinv]","[pump]"))
End Sub
and it still doesnt work.
Any ideals as to why its not working, Am I using the wrong variant?