473,322 Members | 1,504 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Positioning in a field

489 256MB
I'm having a problem positioning the cursor in a field. When I click into the field it doesn't start at the beginning, instead it starts in position 1 not 0. If I tab into the field then it starts in position 0. This field has a drop down list and if you click into the field and start typing the name it will not jump to that person. If you click into the field backspace then start typing the name it jumps right to it. I have this code
Expand|Select|Wrap|Line Numbers
  1.  me.cmbalias.selstart = 0 
in the got focus and also the on enter events but neither works.
Any body got any ideas
Nov 21 '11 #1
4 1538
NeoPa
32,556 Expert Mod 16PB
You ask about the possibilities related to the design of your control (not field), but you give us no information about how you've designed it. I suggest you take a close look at some of the properties and, if you still need help, post the required information for the question.
Nov 21 '11 #2
sierra7
446 Expert 256MB
Tom
If you use the mouse and click in any field (control) the insertion point will be exactly where you click, whether it's a TextBox or ComboBox.

The On_Click Event is not recognised by a ComboBox. Try popping a MsgBox from a Click event. Works in a TextBox but not a Combo.

Double Click does work in both and selects the whole of the current entry. If you start typing then (in a ComboBox) you should start matching data.

I suspect a double click is what you need.
S7
Nov 21 '11 #3
CD Tom
489 256MB
Thanks for the reply, I've been playing around with this and found what I was doing wrong. I was clearing the combo box using a " " instead of a null and of course this left a space in the field. Thanks for help If I run into anything else I check back.
Nov 21 '11 #4
NeoPa
32,556 Expert Mod 16PB
That's a good point to note Tom. Generally, controls which are empty are represented by Nulls, rather than empty strings (and spaces are a separate and dangerous alternative that should be avoided). The only exceptions I'm aware of are bound controls, and then only those bound to fields which allow empty strings (even then I'm not sure the value of the control would ever reflect that rather than a Null). In short, it's nearly always a Null that indicates a control is empty.
Nov 21 '11 #5

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

Similar topics

12
by: Tom Szabo | last post by:
Hi, Just wondering if there are any disadvantage in absolute positioning controls on a page? In example instead of putting the text fields into a table to align properly, one would absolute...
9
by: Bryan R. Meyer | last post by:
Hello Everyone, The problem of browser resizing has become an issue for me. While redesigning my webpage, I set the left and right margins to be auto so that my content would be centered. ...
4
by: Jane Withnolastname | last post by:
I am trying to re-work an old site by replacing the html with css. On the main page, I have a logo image which I needed centred on the initial screen. I found the solution here:...
14
by: Harlan Messinger | last post by:
What am I not understanding about the definition of { position: absolute; }? "The box's position (and possibly size) is specified with the 'left', 'right', 'top', and 'bottom' properties. These...
6
by: rajek | last post by:
I posted a similar question yesterday, but didn't get an answer that resolved the issue. (Thanks to those who tried though.) The background: I've read in books and online that if you have one...
1
by: rufus | last post by:
Hi, I have 2 validators (RegEx and RequiredField) validating a single field. When one of these validators fires I want it to always render in the same position as the other one. The problem is...
1
by: Kubus | last post by:
Please help, IE 6.0 seems to hava a problem with input form autocomplete dropdown positioning. The dropdown list with last entries which appears normally right below the field but when used within...
1
by: Charles Harrison Caudill | last post by:
with tables there is a clean and algorithmic way to organize things, but with css which is, once you get it working, much cleaner, I have to tweak and patch and hope and pray and curse before...
13
by: John young | last post by:
I have been looking for an answer to a problem and have found this group and hope you can assist . I have been re doing a data base I have made for a car club I am with and have been trying to...
6
by: Mark | last post by:
hi, i'm trying to position something in the top right corner of a container, but i can't seem to figure out how to get it working. here's the html <div class='thumb'><a href='image.jpg'><img...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.