Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


select statement

Posted on 1999-07-24
Medium Priority
Last Modified: 2013-12-24
   Iam having a problem in the select statement.
  My statement goes like this
  dim sPattern
  sPattern = request.form("txt")
select ruby from temp where ruby LIKE '% '" & sPattern &"'%'
Iam trying to extract the values from the ruby field where like the pattern contained in the variable.
I don't know its giving lot of run time errors.Please someone help me out in getting the correct syntax for this.

Question by:ragtan
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Accepted Solution

siabod earned 0 total points
ID: 1868248
Try this :

select ruby from temp where ruby LIKE '%"& sPattern &"%'"

the single qoutes in between the % tags are wrong...

Author Comment

ID: 1868249
Hello Siabod,
   Great Man,It worked for me.Thank you very much.Sorry man i don't have enough points in my account.otherwise definetly i prefer to give minimum 40 points for this.
Once again thank you very much keep helping me.


Featured Post

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this short web based tutorial, I wanted to show users how they can still use the powers of FrontPage in conjunction with Expression Web 3.  Even though Microsoft eliminated the use of Web components, we can still use them with FrontPage and edit …
When setting up new project requests for our site, one of the most powerful tools our team has available to use is Axure ( It’s a tool for creating software and web prototypes that can function and interact as if it were the a…
The purpose of this video is to demonstrate how to properly insert a Vimeo Video into a WordPress site or Blog. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following:…
The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…

661 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question