I'm working on an unbound form that wrties a record back to a single table. The form is used supposed to be used by at least two people at once.
On the form is a field called txtOrderNum, for a sales order number, that writes a concatenated key back to the table; it's a combo of the dmax(primary key) + 1 & a combobox the user uses to select their location. So for example the field could be 1-00018. The problem is that if more than one person is working on it at the same time they could get the same sales order number because the field txtOrderNum is filled in when the form is opened and but the record isn't written till the form is saved.
So the problem is how do I get the txtOrderNum to display when the user opens the form and keep it from being duplicated when they save later?
Any ideas?
On the form is a field called txtOrderNum, for a sales order number, that writes a concatenated key back to the table; it's a combo of the dmax(primary key) + 1 & a combobox the user uses to select their location. So for example the field could be 1-00018. The problem is that if more than one person is working on it at the same time they could get the same sales order number because the field txtOrderNum is filled in when the form is opened and but the record isn't written till the form is saved.
So the problem is how do I get the txtOrderNum to display when the user opens the form and keep it from being duplicated when they save later?
Any ideas?