H
hawk_2001 via AccessMonster.com
I have a DB that utilizes a "temporary table" environment. A user will open
a form with the specified information, and that record will immediately be
written to a temporary table. On exit, the user is prompted whether or not
they want tosave the record. If they say yes, the corresponding "main table"
record is updated with the information form the temp table. If the user
selects no, the temp table record is deleted and the main table record
remains unchanged.
Here is my dilemma :
Because this DB is in a multiuser environment, I want some sort of msgbox to
promt a user if they attempt to open a record that is open by another user.
For example, User A opens record 1. 2 mins later, User B attempts to open
record 1. I want User B to get a MsgBox that says "Cannot open record. It is
currently being edited. Please try later."
I have the forms "Record Locks" property set to "Edited Record", which
effectively prevents User B from editing a record currently in use. But,
since I am using temporary tables with append and delete queries, User B will
get various "cannot execute action query" messages, which I do not want. I
have tried error trapping, turning off warnings, etc., but to no avail
Can someone help me figure out a way to accomplish this?
Thanks in advance.
a form with the specified information, and that record will immediately be
written to a temporary table. On exit, the user is prompted whether or not
they want tosave the record. If they say yes, the corresponding "main table"
record is updated with the information form the temp table. If the user
selects no, the temp table record is deleted and the main table record
remains unchanged.
Here is my dilemma :
Because this DB is in a multiuser environment, I want some sort of msgbox to
promt a user if they attempt to open a record that is open by another user.
For example, User A opens record 1. 2 mins later, User B attempts to open
record 1. I want User B to get a MsgBox that says "Cannot open record. It is
currently being edited. Please try later."
I have the forms "Record Locks" property set to "Edited Record", which
effectively prevents User B from editing a record currently in use. But,
since I am using temporary tables with append and delete queries, User B will
get various "cannot execute action query" messages, which I do not want. I
have tried error trapping, turning off warnings, etc., but to no avail
Can someone help me figure out a way to accomplish this?
Thanks in advance.