G
Guest
Hi
I have a form (say Main Form) where the record source is referring to a Risk
table with a primary key of RiskRefID
Below this form is 3 tab controls where I have several subforms on each tab
where the master/child link to RiskRefID
What I want is when I create on Add New Record, the mouse cursor should goes
back to the Main Form where I completed certain field on this form before a
record can be created, then when pressing the tab ke, the mouse should move
to the first field on Tab 0 not Tab 2.
The problem is when I click on create new record on the main form, the mouse
move to a field on the third tab control ie tab 2.
On the last field on the Main Form, I have wrote a code on the Exit event
docmd.gotocontrol "FirstSubFormName" (this is the first subform on tab 0)
docmd.gotocontrol "FirstControlName"
Unfortunately the above code only works on current record. but does not work
when create new record
Could someone please help.
Many Thanks
Hong
I have a form (say Main Form) where the record source is referring to a Risk
table with a primary key of RiskRefID
Below this form is 3 tab controls where I have several subforms on each tab
where the master/child link to RiskRefID
What I want is when I create on Add New Record, the mouse cursor should goes
back to the Main Form where I completed certain field on this form before a
record can be created, then when pressing the tab ke, the mouse should move
to the first field on Tab 0 not Tab 2.
The problem is when I click on create new record on the main form, the mouse
move to a field on the third tab control ie tab 2.
On the last field on the Main Form, I have wrote a code on the Exit event
docmd.gotocontrol "FirstSubFormName" (this is the first subform on tab 0)
docmd.gotocontrol "FirstControlName"
Unfortunately the above code only works on current record. but does not work
when create new record
Could someone please help.
Many Thanks
Hong