473,587 Members | 2,230 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Putting cursor at beginning of field.

489 Contributor
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.S elStart = 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 1492
CD Tom
489 Contributor
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

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

Similar topics

6
4562
by: MPBroida | last post by:
Hi! I couldn't find a better Newsgroup on this server, so I'll ask here and hope for the best. <grin> I'm using MSDevStudio and VisualC++ 6.0 on Win2K. I have a small GUI program (Dialog) that uses (among other things) an EditBox. I put text (drive+dirpath+filespec) in that box with SetDlgItemText(), but the text is longer than the...
0
1473
by: arbpen2003 | last post by:
This is driving me crazy. The markup is valid, the CSS is valid, I'm serving it right, and I still cannot figure out why I cannot get the cursor into the form element. I have tried on Opera, Firefox and IE - all the same. The url is question is http://www.american-loyalty-card.com/beta/ and the form in question is at the upper left hand...
3
7427
by: opt_inf_env | last post by:
Hello, I have created a form with a text-fields. <textarea name="explanation" rows=6 cols=70> </textarea> What I don't like there is that if I click in the middle or end of one of the fields cursor is set in position of 16 simbols from the beginning of field. As if there is already 16 blank spaces in the
2
4248
by: NewBob | last post by:
Since Access automatically highlights all of the text in a text control (I use it to hold data from a memo field) when the control is activated, I've added the following code to put the cursor at the end. Private Sub txtCapability_GotFocus() ‘ Placed either behind the OnEnter or GotFocus Event of a control named, ' in this case,...
4
2486
by: Rick | last post by:
Hello, I currently use a field that I have set up to keep notes in. It is a memo data type field. It looks like a simple box, and I typically time and date stamp my notes as I enter them. For now, whenever I want to add a new note to one of my files I will click once at the very top left corner of the field, hit <enter> twice to move all...
6
4806
by: Sami | last post by:
Problem: Social Security number being used in a database. First problem is that it will not permit numbers beginning in zero to be entered - it sees it as a null or empty space from what I can tell. Next, foreign students have & as the initial part of their SSN. How to do this?? Finally, how do I force the cursor to the far left of...
1
2051
by: jung wook seo | last post by:
Hi~ all How?? please let me know~ Thanks in advance~ *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!
1
6212
by: Russ5102 | last post by:
Microsoft Access I need to change the focus from a "New Record" button back to the beginning field in a form. How can this be done. Currently the tab order ends on the "New Record" button and stays at that location. To continue entering a new record I would like it to return to the first field in the form.
3
4307
by: dugald.morrow | last post by:
I have some javascript that updates the text in a text field after certain actions take place such as clicking a checkbox. The javascript works fine in Safari and Firefox, but in IE, the text in the text field remains empty. The page containing this problem is at the following location: ...
2
1769
by: Sedrick | last post by:
I am putting a timestamp field in a table, using Now() for the default value. I'm using Access 97 Seems like I figured this out once before, but does anyone know of a way on the table level (not in the form) to disallow a user changing the timestamp? Is there a way to use a validation rule or another method to stop changes from being made...
0
7915
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7843
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8339
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7967
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8220
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
3840
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2347
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1452
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1185
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.