PC Review


Reply
Thread Tools Rate Thread

ASP SELECT Syntax question

 
 
=?Utf-8?B?TWljaw==?=
Guest
Posts: n/a
 
      15th Nov 2005
I have a variable called INPUTSTRING. I have an access table called TABLE1
with a field called FIELD1. I want to select all records that have a word
similar to INPUTSTRING in FIELD1. What is the correct syntax of the select
statement? Is it
Select * from table1 where field1 like %inputstring%

Thanks for any replies.
 
Reply With Quote
 
 
 
 
Ronx
Guest
Posts: n/a
 
      15th Nov 2005
mysql="Select * from table1 where (field1 like %" & inputstring & "%)"

--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.
FrontPage Support: http://www.frontpagemvps.com/


"Mick" <(E-Mail Removed)> wrote in message
news:2754E87C-5228-4A3C-BD21-(E-Mail Removed)...
> I have a variable called INPUTSTRING. I have an access table called

TABLE1
> with a field called FIELD1. I want to select all records that have a

word
> similar to INPUTSTRING in FIELD1. What is the correct syntax of the

select
> statement? Is it
> Select * from table1 where field1 like %inputstring%
>
> Thanks for any replies.



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Range Select Syntax u473 Microsoft Excel Programming 3 4th Sep 2008 11:36 PM
Question on SELECT statement syntax / Error 3061 Rob Ivy Microsoft Access VBA Modules 4 29th Oct 2006 05:21 AM
select syntax error Help! =?Utf-8?B?KioqKioqKio=?= Microsoft Access Form Coding 4 10th Nov 2004 10:21 AM
Select Query Syntax - Novice question sean Microsoft Access Queries 2 30th Jan 2004 05:28 AM
Help with Select Syntax Chaster Microsoft Access Forms 1 22nd Jul 2003 11:24 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:40 PM.