Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Searching text fields from Access database 1

Status
Not open for further replies.

DickieD

Technical User
Nov 12, 2002
8
0
0
GB
Help would be appreciated. How do I restrict the data in an SQL query, the field is text and in the criteria box I enter:

Like 'L*'

This works in the Access database but when in VB.NET SQL any field length more than one character does not seem to select the records.

Can anyone help?

 
try to replace the wildcard * with %
/icca
 
Thank you icca, sometimes the books give the wrong information!

Kind regards
 
I also thought you had to use the % twice, ie 'L%%'.

Good Luck
Kennemer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top