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


Top 5 Contributors of the Month
david stephan

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

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

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

Eg: SELECT *
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 _)

<rant>

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

</rant>

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
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

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