Tabing

IanT

Registered User.
Local time
Today, 02:20
Joined
Nov 30, 2001
Messages
191
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
 
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
 

Users who are viewing this thread

Back
Top Bottom