I IanT Registered User. Local time Today, 02:20 Joined Nov 30, 2001 Messages 191 May 21, 2002 #1 I have a form which contains two subforms. I want to tab from one subform to the other. Can anyone help. I can tab from the subforms to the main form! by using: Forms![frmPrintActivity]![PrintIDNumber].SetFocus
I have a form which contains two subforms. I want to tab from one subform to the other. Can anyone help. I can tab from the subforms to the main form! by using: Forms![frmPrintActivity]![PrintIDNumber].SetFocus
David R I know a few things... Local time Yesterday, 20:20 Joined Oct 23, 2001 Messages 2,632 May 21, 2002 #2 Code: Private Sub FieldInFirstSubform_KeyDown(KeyCode As Integer, Shift As Integer) If IsNull(Me.FieldInFirstSubform) Then If KeyCode = 9 And Shift = 0 Then KeyCode = 0 Me.Parent!NextSubform.SetFocus End If End If End Sub
Code: Private Sub FieldInFirstSubform_KeyDown(KeyCode As Integer, Shift As Integer) If IsNull(Me.FieldInFirstSubform) Then If KeyCode = 9 And Shift = 0 Then KeyCode = 0 Me.Parent!NextSubform.SetFocus End If End If End Sub