I'm trying to create a form to add a new vehicle service record.
The user would select the relevant vehicle then enter the date of the service and the mileage of the vehicle (both are required fields).
There's then an 'Add Record' option button.
What i've found is, if all the required information is entered into the form - the database gets updated anyway, without pressing 'add record'. Which would mean, if the user wanted to cancel the entry (either by closing the form, or going back to a previous form) for any reason, the new record is still added.
What I want is a true "Add Record" option - so the database isn't updated until it's pressed by the user. Or at the very least a 'cancel' option that would both delete the information entered and move the user back to the previous form.
edit:
all my options are the basic once selected within Access, i've not written any specific sql
The user would select the relevant vehicle then enter the date of the service and the mileage of the vehicle (both are required fields).
There's then an 'Add Record' option button.
What i've found is, if all the required information is entered into the form - the database gets updated anyway, without pressing 'add record'. Which would mean, if the user wanted to cancel the entry (either by closing the form, or going back to a previous form) for any reason, the new record is still added.
What I want is a true "Add Record" option - so the database isn't updated until it's pressed by the user. Or at the very least a 'cancel' option that would both delete the information entered and move the user back to the previous form.
edit:
all my options are the basic once selected within Access, i've not written any specific sql
Last edited: