Private CurrentForm As Integer
Private Direction As Integer
Private Sub Command1_Click( )
If (CurrentForm = -1) Then
Direction = 1
CurrentForm = 1
If (CurrentForm = Forms.Count) Then CurrentForm = 0
ElseIf (CurrentForm = Forms.Count) Then
Direction = -1
CurrentForm = Forms.Count - 2
If (CurrentForm < 0) Then CurrentForm = (Forms.Count - 1)
End If
Call Forms(CurrentFo rm).SetFocus
CurrentForm = CurrentForm + Direction
End Sub
Private Sub Form_Load()
Direction = 1
Form2.Show
Form3.Show
End Sub[/CODE]
Thank You very much!
Your code helped me a lot.
I will try for improving so that we can assign the same for KEYS like F6 or CTRL + F6
Thank you once again!
Thank You very much!
Your code helped me a lot.
I will try for improving so that we can assign the same for KEYS like F6 or CTRL + F6
Thank you once again!
Comment