G
Guest
Hi,
I have a form that has a textbox, subform, and a MSFlexGrid.
On Exit from the textbox I have code that adds the records to the flexgrid
after some processing, opening connections and recordsets to the DB.
At the end of the code the last thing the code does is to clear down the
textbox and sets the focus to it.
txtLPN.SetFocus
txtLPN.Text = ""
txtLPN.SetFocus
After the code executes the SetFocus method is called but the focus does not
set to the textbox.
I've also tried using DoCmd.GoToControl "txtLPN", but still the focus is not
on the textbox control.
Any ideas?
I have a form that has a textbox, subform, and a MSFlexGrid.
On Exit from the textbox I have code that adds the records to the flexgrid
after some processing, opening connections and recordsets to the DB.
At the end of the code the last thing the code does is to clear down the
textbox and sets the focus to it.
txtLPN.SetFocus
txtLPN.Text = ""
txtLPN.SetFocus
After the code executes the SetFocus method is called but the focus does not
set to the textbox.
I've also tried using DoCmd.GoToControl "txtLPN", but still the focus is not
on the textbox control.
Any ideas?