469,090 Members | 1,222 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,090 developers. It's quick & easy.

Putting cursor at beginning of field.

470 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.
Mar 23 '17 #1
1 1072
CD Tom
470 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
By using this site, you agree to our Privacy Policy and Terms of Use.