C
Chris Kennedy
I have a form where I control the navigation via command buttons rather the
navigation bar at the bottom (so I can do various bits of validation). I
don't want a user to be able to navigate to a new record using the next
button, so I test for the new record.
Dim intnewrec As Integer
intnewrec = Forms!frmInscriptions.NewRecord
If intnewrec = False Then
If ValidateInscription Then
DoCmd.GoToRecord acForm, "frmInscriptions", acNext
End If
End If
If intnewrec = True Then
MsgBox ("There are no more records in the database. If you need to
create a new one press the new record button")
DoCmd.GoToRecord acForm, "frmInscriptions", acPrevious
End If
The thing is I can get to a blank record at the end of a table add things to
it and then then when I press next I get the msgbox, not on the previous
record where I really want them to stop. The last record I want them to see
is, the last one filled in. Does anyone know how to acheive this.
navigation bar at the bottom (so I can do various bits of validation). I
don't want a user to be able to navigate to a new record using the next
button, so I test for the new record.
Dim intnewrec As Integer
intnewrec = Forms!frmInscriptions.NewRecord
If intnewrec = False Then
If ValidateInscription Then
DoCmd.GoToRecord acForm, "frmInscriptions", acNext
End If
End If
If intnewrec = True Then
MsgBox ("There are no more records in the database. If you need to
create a new one press the new record button")
DoCmd.GoToRecord acForm, "frmInscriptions", acPrevious
End If
The thing is I can get to a blank record at the end of a table add things to
it and then then when I press next I get the msgbox, not on the previous
record where I really want them to stop. The last record I want them to see
is, the last one filled in. Does anyone know how to acheive this.