Any ideas?
If txtBox1 = "" Then txtBox1.SetFocus: Exit Sub
If txtBox2 = "" Then txtBox2.SetFocus: Exit Sub
If txtBox3 = "" Then txtBox3.SetFocus: Exit Sub
For some reason, when I use this logic, the program ignores the first line and sets the focus to txtBox2.
But when I walk through the code, it sets it to txtBox1.
There is no code executing after this set of commands.
I'm absolutely baffled.
Rougy
-----
The death of dogma is the birth of reason.
If txtBox1 = "" Then txtBox1.SetFocus: Exit Sub
If txtBox2 = "" Then txtBox2.SetFocus: Exit Sub
If txtBox3 = "" Then txtBox3.SetFocus: Exit Sub
For some reason, when I use this logic, the program ignores the first line and sets the focus to txtBox2.
But when I walk through the code, it sets it to txtBox1.
There is no code executing after this set of commands.
I'm absolutely baffled.
Rougy
-----
The death of dogma is the birth of reason.