I want to prevent user from coincidence delete or edit record in the Main invoice form and Sub invoice form, and I have one command button that allow Edit or Delete when i click.
I set in the form property of Main invoice form (Main invoice form have one Sub invoice form in side):
Allow editions = No
Allow Deletions = No
the results are:
1- When i open the invoice form it still can edit or delete and i click on sub invoice form is lock mean it lock only sub invoice form then i click back on main invoice form it back to lock also. mean the first open main invoice form don't lock until i click on sub invoice form and back to click on main invoice form it change to lock also.
2-When we add new record, we can add only main invoice form other way sub invoice form is inactive can't add new record.
Please let me know what problems in my form and how can i fix it?
Thanks for any help.
I set in the form property of Main invoice form (Main invoice form have one Sub invoice form in side):
Allow editions = No
Allow Deletions = No
the results are:
1- When i open the invoice form it still can edit or delete and i click on sub invoice form is lock mean it lock only sub invoice form then i click back on main invoice form it back to lock also. mean the first open main invoice form don't lock until i click on sub invoice form and back to click on main invoice form it change to lock also.
2-When we add new record, we can add only main invoice form other way sub invoice form is inactive can't add new record.
Please let me know what problems in my form and how can i fix it?
Thanks for any help.