title: moving focus from subform to main form
body: <p>i have main form MAINF and two subforms SUBONE and SUBTWO</p>
  
  <p>I want to be able to move focus (cursor) between them.</p>
  
  <p>From MAINF to SUBONE or SUBTWO, I can call Me![SUBONE].SetFocus or Me![SUBTWO].SetFocus.  This seems to work.</p>
  
  <p>BUT: </p>
  
  <p>1) From SUBONE to SUBTWO, I have no idea. what is the correct way of programatically moving focus?</p>
  
  <p>2) From SUBONE to one of MAINF's control say "Customer ID", how do i do it?</p>
  
  <p>Edit: Here's the code that <strong>rtochip</strong> provided.</p>
  
  <pre><code>Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
      Select Case KeyCode
          Case vbKeyF5
              Me.Parent![Item - Order Subform].SetFocus
              DoCmd.GoToControl "Supplier ID NUM"
          Case vbKeyF6 
              Me.Parent.[Item ID].SetFocus
      End Select
  End Sub    
  </code></pre>