|
-
Jul 21st, 2003, 11:43 AM
#1
Thread Starter
Frenzied Member
Finding Records [resolved]
Does any1 out there have a way to find records based upon the first letter of a value in one of the DB's fields?
I am using ADODB...
For example:
I have a text field that may have the following values...
Bob
Mary
jim
Joe
if my user selects "J" from a combo box, i would like to have a list box fill up with "jim" and "Joe" from the Database...
Thank you for your help,
Squirrelly1
Last edited by squirrelly1; Jul 21st, 2003 at 12:51 PM.
Now happily married and still crankin' away at the keyboard.  Life is grand for a coder, no?
-
Jul 21st, 2003, 11:52 AM
#2
Fanatic Member
You can do something like this
VB Code:
Query = "SELECT * FROM TableName WHERE [Name] LIKE '" & combobox & "%'"
-
Jul 21st, 2003, 12:52 PM
#3
Thread Starter
Frenzied Member
Thank you...
Thanx for the help Maldrid, I was playing around with that but couldn't get the right syntax... 
Squirrelly1
Now happily married and still crankin' away at the keyboard.  Life is grand for a coder, no?
-
Jul 21st, 2003, 12:53 PM
#4
Fanatic Member
So you have it working now right?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|