C
Christine
I'm designing an application that will be used by multiple
users via a network. I understand that Access adds records
regarless of whether you actually "save" the record or
not, and that adding a cancel command doesn't do anything
either. Thus, an AutoNumber field increments when you may
not want it to.
So, my question is which method to add records is better:
Choice 1: Open the form. Store the fields to memory. When
the user clicks "Add record", put the contents of the
memory variables into the fields. This will then increment
the AutoNumber field. Pressing "Cancel" would release
everything from memory.
Choice 2: Create a temporary table to store the fields and
data. When the user clicks "Add record", use an append
query to add the record to the table. Then delete the
temporary table. Pressing "Cancel" would also delete the
temp table.
I'm not quite at the point of adding locks to handle
events in a multiuser environment, but (as a very
inexperienced user confused about locks, back and front
ends, etc.), which of the above choices would be the
easiest to learn how to code? For each choice, what would
have to be considered?
Many thanks,
Christine
users via a network. I understand that Access adds records
regarless of whether you actually "save" the record or
not, and that adding a cancel command doesn't do anything
either. Thus, an AutoNumber field increments when you may
not want it to.
So, my question is which method to add records is better:
Choice 1: Open the form. Store the fields to memory. When
the user clicks "Add record", put the contents of the
memory variables into the fields. This will then increment
the AutoNumber field. Pressing "Cancel" would release
everything from memory.
Choice 2: Create a temporary table to store the fields and
data. When the user clicks "Add record", use an append
query to add the record to the table. Then delete the
temporary table. Pressing "Cancel" would also delete the
temp table.
I'm not quite at the point of adding locks to handle
events in a multiuser environment, but (as a very
inexperienced user confused about locks, back and front
ends, etc.), which of the above choices would be the
easiest to learn how to code? For each choice, what would
have to be considered?
Many thanks,
Christine