I understand how to create an unbound data entry forms. But I am struggling to find an efficient way to detect the change made by a user in the unbound form, so the database can force the user to save the record. I have three options right now.
1. Lock all controls in the form and provide an "Edit" button. The user need to click the "Edit" button to unlock the form, and at the same time tells the database that changes will be made. It is a lot code to unlock/lock every controls.
2. Create “After_Update” event for each control in the form and that event procedure will detect any change made by the user. This also involves a lot of codes.
3. Create a local table that is exactly the same as the table on the Server. A record is copied to the local table from the Sever table when the record is loaded. The unbound form is bound to that local table. So I can use the Dirty event of the form to detect whether change is made.
Which option is best? Or could someone help me think outside the box?
Thanks in advance.
Seaport
1. Lock all controls in the form and provide an "Edit" button. The user need to click the "Edit" button to unlock the form, and at the same time tells the database that changes will be made. It is a lot code to unlock/lock every controls.
2. Create “After_Update” event for each control in the form and that event procedure will detect any change made by the user. This also involves a lot of codes.
3. Create a local table that is exactly the same as the table on the Server. A record is copied to the local table from the Sever table when the record is loaded. The unbound form is bound to that local table. So I can use the Dirty event of the form to detect whether change is made.
Which option is best? Or could someone help me think outside the box?
Thanks in advance.
Seaport