Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access VBA
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 24th, 2006, 01:27 PM
Authorized User
Join Date: Dec 2005
Location: London, , United Kingdom.
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default VB SQL search similar records

Hi there

I am trying to seach for similar records in a database, so for example, if the user searches for 'Dere'
it will return records that are similar like:


I am attempting this with the following SQL :
SELECT UserName FROM Users WHERE 'derek' Like '%'

Nothing is returned unfotunately, any suggestions? Any help or adive will be much appreciated thanks.


Reply With Quote
  #2 (permalink)  
Old March 24th, 2006, 08:19 PM
Friend of Wrox
Join Date: Jun 2003
Location: , , USA.
Posts: 1,093
Thanks: 1
Thanked 12 Times in 11 Posts


SELECT UserName FROM Users WHERE UserName Like 'dere%'"

Will return only Dereck from you list.



Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Search a binary file of million records DineshGirij008 C# 18 July 17th, 2008 09:38 AM
Excluding certain records from a search RussLewis XSLT 5 March 4th, 2008 12:14 PM
Import Automation within Access similar to SQL DTS JTCrashOverride Access 1 November 14th, 2006 08:34 AM
Db Grid ( in VB6) similar in VB .net 2003 required venkikrao VB.NET 1 December 3rd, 2005 11:49 AM
Finding records containing similar text salman Classic ASP Databases 3 November 30th, 2004 10:17 AM

All times are GMT -4. The time now is 01:16 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.