GoToControl on record load

andymac

Registered User.
Local time
Today, 02:57
Joined
Jun 2, 2013
Messages
36
Hello,

I'm using a barcode scanner to enter ID numbers into a combo box on a form.. I've got it to do this much - scan the barcode, and then the form loads the relevant record. Great - now I want, that when a barcode is scanned, it makes the next field the 'live' field (the one with the cursor in it).

Hope that makes sense

Andrew
 
Try adding the following to your code;
Code:
Me.YourControlName.[URL="http://msdn.microsoft.com/en-us/library/office/aa205181%28v=office.10%29.aspx"]SetFocus[/URL]
 
Use SetFocus. If you're using VBA

Me.TextboxName.SetFocus
 
This is what happens when the phone rings while typing. :p
 

Users who are viewing this thread

Back
Top Bottom