navigation question

  • Thread starter Thread starter nevje
  • Start date Start date
N

nevje

i have a form that is order/ordersubform:-

orderform
ordernumber
orderdate
ordertype

ordersubform
productcode
productdescription
quantity

the tab order is fine and it starts at order number and goes through
each one as expected and from the main form onto the subform. but when i
goto next record (on the main form as i have hidden the subforms next
record buttons) to create a new order the cursor starts at the beginning
of the subform instead of the main form.

how can i correct this?
 
in the "ON CURRENT" event of the form, simply add code to set the focus to
the desired field.

Something like...


Private Sub Form_Current()
OrderNumber.SetFocus
End Sub


Rick "B


i have a form that is order/ordersubform:-

orderform
ordernumber
orderdate
ordertype

ordersubform
productcode
productdescription
quantity

the tab order is fine and it starts at order number and goes through
each one as expected and from the main form onto the subform. but when i
goto next record (on the main form as i have hidden the subforms next
record buttons) to create a new order the cursor starts at the beginning
of the subform instead of the main form.

how can i correct this?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Access Main form/Subform Navigation 0
Query - Table 3
subform in main form 2
Setfocus on main form from subform? 1
Blank Fields in Report 2
open form/subform at specific record 3
subform question 3
Records in Subforms 1

Back
Top