471,873 Members | 2,034 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,873 software developers and data experts.

Putting cursor at beginning of field.

485 256MB
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
1 1282
CD Tom
485 256MB
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.

Similar topics

6 posts views Thread by MPBroida | last post: by
3 posts views Thread by opt_inf_env | last post: by
3 posts views Thread by dugald.morrow | last post: by
reply views Thread by zermasroor | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.