RichO
Registered Yoozer
- Local time
- Today, 08:10
- Joined
- Jan 14, 2004
- Messages
- 1,036
I have a form with a tab control. Within one of the tabs is a continuous form. When this tab is selected I want this form to go to a new record for data entry.
In the continuous form's On Activate event I have
DoCmd.RunCommand acCmdRecordsGoToNew
This works fine when opening the form on its own but when it is inside a tab control the event does not fire when the tab is clicked.
Any suggestions on how I can force a new record on this form when the tab is clicked? I tried using code in the tab control's On Change event but I'm not sure how to code it to call the form's Activate event.
Thanks
In the continuous form's On Activate event I have
DoCmd.RunCommand acCmdRecordsGoToNew
This works fine when opening the form on its own but when it is inside a tab control the event does not fire when the tab is clicked.
Any suggestions on how I can force a new record on this form when the tab is clicked? I tried using code in the tab control's On Change event but I'm not sure how to code it to call the form's Activate event.
Code:
[B][COLOR="Blue"]If MyTabs=2 Then
Me.frmAccountLedger.(code to force a new record or fire Activate event)
End If[/COLOR][/B]
Thanks