By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,480 Members | 2,189 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,480 IT Pros & Developers. It's quick & easy.

Putting cursor at beginning of field.

100+
P: 434
I have a regular form with two selection fields. Both are combo boxes that the user can select either the customer number or the other combo box they can select the customer name. This works just fine except the form displays with the cursor on the Customer Number selection combo box, if I tab into the Customer name combo box the cursor starts at the beginning of the field, however if I click into the field the cursor starts at position 1 and you have to backspace to get the field to select the name when you start typing.
I've put into the On Enter Me.CustNumber.SelStart = 0 I also have the save thing in the On GotFocus but it still starts on position 1.
Any suggestions would help.
Thanks
Mar 23 '17 #1
Share this Question
Share on Google+
1 Reply


100+
P: 434
Well I found out what the problem was. So just to let you know in case someone else has this problem. What I found out was that the first customer name in the list had a blank in the first position, so this caused the cursor not to go to position 0. Such a silly error I should have seen it sooner
Mar 23 '17 #2

Post your reply

Sign in to post your reply or Sign up for a free account.