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

How to show items in list box beginning with characters typed by user

48
I have a list box which contains a list a customers in the database. i want the list box to show the names of customers that start with the letters entered by the user.
Dec 12 '11 #1

✓ answered by Seth Schrock

You have two options. You could create a query and then select that query as the row source for the listbox or you can type the SQL code into the row source. Either way, you get the same results. The only code that you could put into the textbox is in the after update event that requeries the list box. For example,
Expand|Select|Wrap|Line Numbers
  1. Me.{listbox name}.Requery

4 1958
Seth Schrock
2,965 Expert 2GB
Check out the the following discussion about a similar question. Advanced Search Form and see if that answers your question. If you have further questions, feel free to ask.
Dec 13 '11 #2
almaroc
48
I Put the code in the TxtPartial_Enter Sub but it didn't work. i did't put anything in the rowsource property of the list box. do i need to set it to strSql. thanks
Dec 13 '11 #3
Seth Schrock
2,965 Expert 2GB
You have two options. You could create a query and then select that query as the row source for the listbox or you can type the SQL code into the row source. Either way, you get the same results. The only code that you could put into the textbox is in the after update event that requeries the list box. For example,
Expand|Select|Wrap|Line Numbers
  1. Me.{listbox name}.Requery
Dec 14 '11 #4
almaroc
48
Thanks Seth. it worked fine!
Dec 14 '11 #5

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

Similar topics

1
by: Sakharam Phapale | last post by:
Hi All, How to show dropdown list of menu items just like click on Parent menu. For example, Edit (Parent menu) Cut (child menu) Copy (child menu) Paste (child menu)
3
by: Gonçalo Boléo | last post by:
How do i list the groups a user belong using AD? thanks, Gonçalo Boléo
1
by: aa | last post by:
How to show the list of the pictures from MS access in the html page, for instance in the table or datagrid VB thanks
1
by: Iams | last post by:
I have one form, with 2 user controls. How can I get the procedures on uc2 to modify a drop down list on uc1? I tried various versious of this in uc2: uc1.ddl.SelectedIndex =...
2
by: Sakharam Phapale | last post by:
Hi All, How to show dropdown list of menu items just like click on Parent menu. For example, Edit (Parent menu) Cut (child menu) Copy (child menu) Paste (child menu)
6
by: TAL651 | last post by:
Hello, I am using javascript to show/hide nested lists. I modified some code originally posted by ACoder on an earlier thread. Currently, however, the page loads with everything showing. My...
7
by: clinisbut | last post by:
Hi I'm trying to write an app and don't know how to start. I'll have a selector with a list of true type fonts. Each font will represent a different set of chars. Example *arial-font...
1
by: jej1216 | last post by:
Background: I have an PHP form that inserts data into a MySQL DB, and it works. Severity of Incident: <select name="severity" size="1"> <option value="">Select a Severity Option</option>...
2
by: =?Utf-8?B?RHJEQkY=?= | last post by:
I understand that the Value put into a DataGridViewComboBoxCell has to be a member of the Items list or an exception is thrown. I also understand that you can override that exception by handling...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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:
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.