I want to check if the current record on a form is a new record or not and then take appropriate action. At the moment in the 'On current' event property i allocate the value of a text box to variable,which i use on another form. This works fine until i go to a new record and there is nothing in the text box. I have found in the help pages the 'NewRecordMark' sub but i cant work out how to insert it into the code i have to test for a new record and bypass the code for setting the variable. This is the sub:
Sub NewRecordMark(frm As Form)
Dim intnewrec As Integer
intnewrec = frm.NewRecord
If intnewrec = True Then
MsgBox "You're in a new record." _
& "@Do you want to add new data?" _
& "@If not, move to an existing record."
End If
End Sub
It doesnt seem to matter how i insert it into the 'oncurrent' event it always comes up with an error
Any help on this will be greatly appreciated
John
Sub NewRecordMark(frm As Form)
Dim intnewrec As Integer
intnewrec = frm.NewRecord
If intnewrec = True Then
MsgBox "You're in a new record." _
& "@Do you want to add new data?" _
& "@If not, move to an existing record."
End If
End Sub
It doesnt seem to matter how i insert it into the 'oncurrent' event it always comes up with an error
Any help on this will be greatly appreciated
John