I have tried to search this out but have found conflicting suggestions and still have not found a solution.
I have a form with two fields, one a ComboBox and the other a text box, both are unbound and two controls, one is to close the form the other is to close the application .
On entering the the combo box is the first tab stop which I need because an item is to be selected from the pulldown, next the end user scans a barcode. The barcode reader is set to folow input with CHR$13 CHR$10 to emulate striking the Enter key on the keyboard. This is to be the trigger for an SQL based on the COmbo value and the scanned data to update a database.
All of that works EXCEPT after testing the data or running the SQL I would like the focus to be placed on the text box, so I placed a Me.Text1.SetFocus after my EndIf so irregardless of the result of the testing it will place the cursor into Text1. It does not and I am perplexed to how to get this to function.
Any and all help would be appreciated.
I have a form with two fields, one a ComboBox and the other a text box, both are unbound and two controls, one is to close the form the other is to close the application .
On entering the the combo box is the first tab stop which I need because an item is to be selected from the pulldown, next the end user scans a barcode. The barcode reader is set to folow input with CHR$13 CHR$10 to emulate striking the Enter key on the keyboard. This is to be the trigger for an SQL based on the COmbo value and the scanned data to update a database.
All of that works EXCEPT after testing the data or running the SQL I would like the focus to be placed on the text box, so I placed a Me.Text1.SetFocus after my EndIf so irregardless of the result of the testing it will place the cursor into Text1. It does not and I am perplexed to how to get this to function.
Any and all help would be appreciated.