I have a command button on my form.
At the moment the only code on the button is DoCmd.Close (and the other error handling code).
When the button is clicked I want the following to occur:
Hope you can understand that.
Any help would be great as I am rubbish at this VBA stuff.
At the moment the only code on the button is DoCmd.Close (and the other error handling code).
When the button is clicked I want the following to occur:
- Check txtSurname and txtFirstName
- If contain no data then msgbox(No data in required fields click canel to exit saving no data, or retry to return to form)
- If all fields contain data then close form
Hope you can understand that.
Any help would be great as I am rubbish at this VBA stuff.