chirpyform
Programmer
I have a chain of 3 forms:
Form1 deals with table1 in read-only mode. We double click in a record to see the details in form2.
In Form2 we are in mode modify. We click a button in form2 to goto form3 which is linked to table2 which is in relation with table1.
The problem is that I want to stop the user going to form three if there is already somebody (using another computer but the same database) using the same record in form2.
I can lock the form2 from being changed by 2 users at once but I don't know how to stop the 2 users from going to form3 (You will just have to take my word for it that this causes a problem).
Is there a way of testing if the form is in locked for example.
eg
If form is in a state of being locked ie someone else is in the form then
form.button.enabled = false
Chris
Form1 deals with table1 in read-only mode. We double click in a record to see the details in form2.
In Form2 we are in mode modify. We click a button in form2 to goto form3 which is linked to table2 which is in relation with table1.
The problem is that I want to stop the user going to form three if there is already somebody (using another computer but the same database) using the same record in form2.
I can lock the form2 from being changed by 2 users at once but I don't know how to stop the 2 users from going to form3 (You will just have to take my word for it that this causes a problem).
Is there a way of testing if the form is in locked for example.
eg
If form is in a state of being locked ie someone else is in the form then
form.button.enabled = false
Chris