.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Home >> Forum >> Others >> Post New QuestionBookmark and Share Subscribe to Forum

like query in ms access

Posted By: Vikramraj     Posted Date: October 22, 2010    Points:2   Category :Others
how to write like query in ms access

Author: Jean Paul             
Posted Date: October 22, 2010     Points: 5   

Dude.. I think you have to use asterik (*) instead of percentage (%) symbol in query:

FROM TableCustomer
WHERE (((TableCustomer.[Name]) Like '*a*'));

Jean Paul http://jeanpaulva.com/
Author: Dhiraj Ranka             
Posted Date: October 23, 2010     Points: 5   

Jet SQL 4.x supports the ANSI wildcards % and _

In Jet SQL, its
* for 0 or more characters (and from Jet 4.x you can also use %)
? for one character (end from Jet 4.x you can also use _)


Moral of the story is try both '*' and '%'


Hope this helps.

Thanks & Regards,
Dhiraj Ranka
http://www.twitter.com/dhirajranka | http://www.dhirajranka.com

Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend