A
Angela
I have a form that displays one record displaying information about a piece
of equipment. Each similar piece of equipment is marked with a "use order"
which indicates what order they will be installed on the machine. When the
user changes the status from "inventory" to "on machine", I automatically
change the "user order" on that piece of equipment from 1 to null (since it
is now installed). But I also want to change the other equipment that is
marked 2, 3, 4 to 1, 2, 3 to show that they have moved up in the queue.
I used the AfterUpdate event on the Status field to change the User Order of
the current record from 1 to null and that works fine. In the same
AfterUpdate event, I tried to insert code to create a recordset to find the
related equipment records and change their Use Orders, but it didn't work and
the error msg implied that the related records were locked. The database has
"edited record" locking so it appears that a page of records, including the
ones that I want to change, are all locked. I hesitate to change the
record-locking since this is a shared database.
Is there a better way to accomplish this?
Thanks
of equipment. Each similar piece of equipment is marked with a "use order"
which indicates what order they will be installed on the machine. When the
user changes the status from "inventory" to "on machine", I automatically
change the "user order" on that piece of equipment from 1 to null (since it
is now installed). But I also want to change the other equipment that is
marked 2, 3, 4 to 1, 2, 3 to show that they have moved up in the queue.
I used the AfterUpdate event on the Status field to change the User Order of
the current record from 1 to null and that works fine. In the same
AfterUpdate event, I tried to insert code to create a recordset to find the
related equipment records and change their Use Orders, but it didn't work and
the error msg implied that the related records were locked. The database has
"edited record" locking so it appears that a page of records, including the
ones that I want to change, are all locked. I hesitate to change the
record-locking since this is a shared database.
Is there a better way to accomplish this?
Thanks