mje397
Mar 3 2005, 11:34 AM
Is it possible to control the navigation between the various entities in a form .. for eg I have
Combobox 1
Textbox 2
Combobox 3
If value of "combobox 1" is say 2 then go to "textbox 2" or else go to combobox 3..
Thnx in advance
Jack Cowley
Mar 3 2005, 11:46 AM
Welcome to Utter Access Forums!
In the After Update event of Combobox1:
If Me.ComboBox1 = 2 Then
Me.TextBox2.SetFocus
Else
Me.ComboBox3.SetFocus
End If
hth,
Jack
mje397
Mar 3 2005, 12:08 PM
thnx jack,, It is working if I give ... Me.combobox=1 then..
But when I use an OR control is not going where I want.. Am i missing something.. ??
This is my code.
If Me.Combo18 = 1 Or 2 Then
Me.Combo22.SetFocus
Else
Me.Combo20.SetFocus
End If
Jack Cowley
Mar 3 2005, 12:10 PM
This will work:
If Me.Combo18 = 1 Or Me.Combo18 = 2 Then
Me.Combo22.SetFocus
Else
Me.Combo20.SetFocus
End If
Jack
mje397
Mar 3 2005, 12:12 PM
Thnx a bunch
Jack Cowley
Mar 3 2005, 12:16 PM
You are welcome...
Jack
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.