I must be missing something obvious, but I have a problem with setting and moving Focus from one control to another. There are 4 textboxes and a button. All I want to do is start with Focus in txt1, type something in, hit TAB or ENTER to move to txt2 and so on, ending up at Button1 which enters the data.
I haven't got beyond trying this on the desktop.
Sub App_Start
Form1.Show
txt1.Focus
End Sub
...and when the form opens Focus is on txt2. Hmmmm. If I leave the form to type something here, the focus has mysteriously moved to txt4 when I get back. Hmmm.
I thought something like:
Sub txt1_LostFocus
txt2.Focus
End Sub
Sub txt2_LostFocus
txt3.Focus
End Sub
would move the focus along, but it works with some boxes and not with others. <sigh>
Is there a way of simulating the Tab Order process found in other languages?
Thanks
Caravelle