Hi
I've following crazy problem:
I have a form wich contains a tabcontrol with 2 tabs
on each tab I have 4 subforms
(giving dancecouples points for their performance)
When entering the form I ask how many subforms are needed.
Then, on the subform the user needs to fill 2 comboboxes. So far so good.
When I want to leave the form or change the amount of pairs. I need to UNDO the second combo (name: cboLevel), otherwise I get an error (because the point fields are required).
an undo button on the spec subform works fine and also the undo from the menu. pressing ESC does also the job.
but when i try this with a button on the main form.... aaaah I cant get it done
I tried:
- DoCmd.RunCommand acCmdUndo
- DoCmd.DoMenuItem acFormBar, acEditMenu, acUndo, , acMenuVer70
- SendKeys "{ESC}", True
- Me!TabCtl1!SFafdansen1.Undo
Conclusion... Im not able to reference a control on a subform on a tab
I'm out of inspiration...
please help
many thanks in advance
Alaric
I've following crazy problem:
I have a form wich contains a tabcontrol with 2 tabs
on each tab I have 4 subforms
(giving dancecouples points for their performance)
When entering the form I ask how many subforms are needed.
Then, on the subform the user needs to fill 2 comboboxes. So far so good.
When I want to leave the form or change the amount of pairs. I need to UNDO the second combo (name: cboLevel), otherwise I get an error (because the point fields are required).
an undo button on the spec subform works fine and also the undo from the menu. pressing ESC does also the job.
but when i try this with a button on the main form.... aaaah I cant get it done
I tried:
- DoCmd.RunCommand acCmdUndo
- DoCmd.DoMenuItem acFormBar, acEditMenu, acUndo, , acMenuVer70
- SendKeys "{ESC}", True
- Me!TabCtl1!SFafdansen1.Undo
Conclusion... Im not able to reference a control on a subform on a tab
I'm out of inspiration...
please help
many thanks in advance
Alaric
Last edited: