Ok. If I read it right, the checking of the form status will keep others from also opening that form. If this is correct, then I have explained myself wrongly. I do not want to keep others from opening the form (edit record form), but keep them from opening the SAME record in the form used for editing.
As for the other method, will this lock the record set, eg. all the records in the underlying query? How do I target checking the state of a specific record (e.g. customerId #5555 is currently being edited in the "frmCustomerInfoEdit").
I have a continuous form which shows a complete list of customers - "CustList". On that form, there is a button next to each customer that, when clicked, opens another form with full customer details to allow editing/updating.
I want to prevent anyone else from selecting the same customer while someone else currently has the specific customer's record already open. I am trying to generate an error message "record is currently locked" or similar, but preventing that record from being selected.
I have tried setting a value in a field in the record to indicate that it has been locked. However, using "setvalue" only sets the value for a control object and doesn't , on-load,does not immediately write the value to the record table. I have tried using setvalue on a form object and then using requery to get it to write to the table. However, requery is leaving it in a state of "writing" that then prevents other user edits to be written.
I hope I have been clear enough. Let me know if I can provide any othe details.
Thanks a bunch!