Hi all,
I have a form for entering time off for work. Each day of vacation has its own record in a table because we need to track who's covering that shift, and it could be different each day. The form for entering requests has a button which is supposed to copy that record and create a new one and open it in the form, so you can easily add multiple days without having to enter all of the information over again. However, if I enter vacation for July 1, July 2, and July 3, when I go into the table, I only see a request for the last day I entered.
Now... because the way my controls are set up (some auto-populate based on other controls) there are three different forms - one for new requests, one for modifying requests, and one specifically for adding more days to a request.
This button I'm having problems with works on the new and mod forms, but does not work on the add date form.
Here is the code that performs the paste append:
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 2, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 5, , acMenuVer70
DoCmd.OpenForm "PopupAddDate"
And the form controls on the add date form are -
Allow Edits - No
Allow Additions - Yes
If anyone can point me in the right direction, I would be grateful.
Thank you,
MJ
I have a form for entering time off for work. Each day of vacation has its own record in a table because we need to track who's covering that shift, and it could be different each day. The form for entering requests has a button which is supposed to copy that record and create a new one and open it in the form, so you can easily add multiple days without having to enter all of the information over again. However, if I enter vacation for July 1, July 2, and July 3, when I go into the table, I only see a request for the last day I entered.
Now... because the way my controls are set up (some auto-populate based on other controls) there are three different forms - one for new requests, one for modifying requests, and one specifically for adding more days to a request.
This button I'm having problems with works on the new and mod forms, but does not work on the add date form.
Here is the code that performs the paste append:
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 2, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 5, , acMenuVer70
DoCmd.OpenForm "PopupAddDate"
And the form controls on the add date form are -
Allow Edits - No
Allow Additions - Yes
If anyone can point me in the right direction, I would be grateful.
Thank you,
MJ