By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,925 Members | 1,825 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,925 IT Pros & Developers. It's quick & easy.

Textbox Entry that Filters Combobox display

P: 13
How do I get text entered in a textbox, limit the info desplayed in the drop down portion of the textbox?

I have a form that displays addresses linked to an Access database.

If I only want to see the addresses from a certain city, i would like to either enter into a textbox the name of a city or select it from another combobox. Either way is fine by me,

Any suggestions how to do this.
I am very new at VB and am using VB express 2005.

Dec 10 '06 #1
Share this Question
Share on Google+
3 Replies

P: 62
hello friend!

i dont get what you mean...
but from what i understood, you dont want to get all the name of cities in the database??

i think you have to change the SQL...
ex: "select * from dbase_table where city like ' " & textbox_name & ' ", dbconn, 3 ,3

"rs" is the recordset
i hope this helps!
enjoy programming
Dec 10 '06 #2

P: 13
I only want to get data entries that have the city i input to my textbox.

Does that clarify it a bit better?

Dec 10 '06 #3

P: 13
The above suggested Code doesn't seem to work in VB 2005

Dec 10 '06 #4

Post your reply

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