473,394 Members | 1,831 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,394 software developers and data experts.

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 6603
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_KeyPress(KeyAscii As Integer)
Me!cboFindEE.Dropdown
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
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...
2
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...
6
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...
1
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
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,...
1
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,...
3
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 ...
5
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...
5
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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...

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.