I am getting my syntax all wrong can anyone help? I want the user to have to fill in a field called 'reason' before they sibmit. It is a required field but I wanted a message box to pop up too. In addition, before the form is submitted I want the fields StaffAllocated and Status to be changed. The reason is that this form is requesting a reallocation of sales staff so I want to delete the current allocation and change the status to 14 (awaiting allocation). I hope this makes sense. I tried writing code with a while loop but it didnt recognise my syntax then I tried the code below but it keeps saying I am missing an IF statement. Any help appreciated.
Private Sub submit_Click()
If Reason = Null Then MsgBox "You must enter a reason"
Else
Forms![frm_client].Form.[StaffAllocated] = Null
Forms![frm_client].Form.[Status] = 14
DoCmd.Close
End If
End Sub