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

Home Posts Topics Members FAQ

SelStart - SelLength

Hello,
There are many threads on this subject but I can't find the
answer for my particular situation in Access 2000. I have a populated
combo box that my users would like to work as a "Smart Search". In
other words, they want to start typing the entry they are after and
have the combo box search down matching, not only the first letter, but
all succesive letters.
EXAMPLE: "B", "U", "L" separates "Bull Moose" from "Buckeye"

This works in two cases:
Case 1: If they click the down arrow on the combo box, it drops
down, and they can start typing until reaching the desired entry and
then hit enter.
Case 2: If they tab into the combo box, the entire line is
highlighted so they can start typeing as in case 1:

This does not work:
Clicking on the combo box (Not the drop down) arrow. I tried
using the Enter and/or GotFocus events to force highlighting the entire
entry with:
Me.VendorCombo. SelStart = 0
Me.VendorCombo. SelLength = 100
But no highlighting takes place so any keystrokes just end up
in the current text.
Thanks,
Hank Reed

Nov 13 '05 #1
1 6630
Hi,

In an older A97 app I did, I have a first combo box that has focus when
the form opens, the enduser can just start typing a name and it will
search down the list as you wanted - all I used was the keypress event:

Private Sub cboFindEE_KeyPr ess(KeyAscii As Integer)
Me!cboFindEE.Dr opdown
End Sub

works like a charm.

JimA

Nov 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
2623
by: Cengiz Ulku | last post by:
Hi, I know now, how to search for a special char. or a word in a RTB control. But, my question is: My RTF file is some sort of an index document, there are chapter numbers and within these chapters, each line is also numbered. For to avoid ambigous numbers each chapter number is "Bold, 14pts" and each line is "Bold, superscript, 9pts"....
2
2857
by: Newsgroup | last post by:
I have a multiline textbox with 10 lines of text in it. I want to search Line by Line for the word" ". How do I process one line in a text box at a time? I DON'T want to just search the whole textbox for my word, because when I find it, I want to stop the cursor there until the user decides to continue to find the next instance. MY...
6
8800
by: Oren | last post by:
Hi, Is there a way to use the SelStart functionality in a textbox that has more than 32,767 characters in it, when the cursor is beyond the 32,767th characterz? SelStart is an integer, and it wraps around to negative numbers when going beyond this upper limit. Thanks,
1
1537
by: Parintas Themis STE Kardias | last post by:
I have a field 100 with character lenght. How can i saw and edit data in the5th place in the field Themis
2
2434
by: andreas | last post by:
When I select a text in a richtextbox to set de selected text in bold, regular, italic .. or non I want to do that with one click Thus I must find out if the selected text is already in bold, regular, italic...... Is there any code for this Thanks for any response
1
1251
by: AA Arens | last post by:
I have a combo box. I can choose the value. But it is also possible to type in the field and the right value will appear when typing. But before start typing I need to clear the present value, otherwise I start typing in the middle of the value. How to have the present value auto selected (highlighted) when I focus on it and when I type this...
3
2795
by: frankleggett | last post by:
Hi I am using Keypress(keyAscii as integer) like this Private Sub txtBox_keypress(KeyAscii As Integer) txtBox.SelStart = 0 txtBox.SelLength = Len(txtBox.Text) If KeyAscii = 13 Then Call SaveContents
5
2729
by: debbie | last post by:
I have three combo boxes on a subform. I have tried setting them up so that when the user clicks in the combo box the curser moves to the left. I have searched the posts and can find nothing that answers my problem....no matter what I have tried....on click, set focus, got focus...one combo box works and the other two start one space from...
5
7052
by: BarryM | last post by:
could somebody please tell me how to search a rich textbox for a particular word and then highlight that word in the rich textbox ; ; on the form theres are textbox called txtsearch, a button called btnsearch and a rich textbox called rtbtext. The person enters a word into the textbox, presses the button and then it highligts that word in the...
0
8206
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8340
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
6621
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5713
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5392
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
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...
0
3875
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
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.