Hi
I wish someone could help me
I have a simple form in my access database for a hairdressing salon
when i place an appointment i have a piece of simple code to replace error message 3022
here is the code
Option Compare Database
Private Sub Form_Error(DataErr As Integer, Response As Integer)
If DataErr = 3022 Then
MsgBox ("This appointment has already been booked")
Response = 0
End If
End Sub
it works when I add a new appointment but i need to add nav buttons
but when i add them the custom message doesnt work.
can anyone help me.
James