Hello.
This is either a poor programming choice or a simple fix I am sure, but I am a beginner, so please try not to yell. Lol
I created a simple database in Access that has a form where users input the days and times they will be renting out a company vehicle.
Sometimes, users will have to make the same stop, using the same vehicle, for multiple days in a row. (i.e. needing a vehicle to go to the same location from 8a-12p on monday, tuesday and wednesday). I was under the impression that the users could submit all three days in one sitting without having to fill out ALL fields three times - If they submit one record, the fields stay populated, so all they have to do is change the date and click submit again in order for it to save a new record. However, even though the submit button works, it seems to only store the last record sent, instead of all 3.
How can I set the VBA code to save a new record by altering one field on a form that has already been submitted, instead of overwriting it?
*Not sure if this matters, but the table that the record saves to has an autonumber column for every new record.
*The code currently used in the button currently is:
DoCmd.RunCommand acCmdSaveRecord
MsgBox "Thank you! Your request has been submitted.", vbOKOnly
This is either a poor programming choice or a simple fix I am sure, but I am a beginner, so please try not to yell. Lol
I created a simple database in Access that has a form where users input the days and times they will be renting out a company vehicle.
Sometimes, users will have to make the same stop, using the same vehicle, for multiple days in a row. (i.e. needing a vehicle to go to the same location from 8a-12p on monday, tuesday and wednesday). I was under the impression that the users could submit all three days in one sitting without having to fill out ALL fields three times - If they submit one record, the fields stay populated, so all they have to do is change the date and click submit again in order for it to save a new record. However, even though the submit button works, it seems to only store the last record sent, instead of all 3.
How can I set the VBA code to save a new record by altering one field on a form that has already been submitted, instead of overwriting it?
*Not sure if this matters, but the table that the record saves to has an autonumber column for every new record.
*The code currently used in the button currently is:
DoCmd.RunCommand acCmdSaveRecord
MsgBox "Thank you! Your request has been submitted.", vbOKOnly