Click to See Complete Forum and Search --> : ASP & Access


Reza
03-13-2000, 12:50 PM
hi there,

I am pretty new to ASP and I am in the middle of building a sample application
using ASP and Access.

I am using the ADO Connection an RecordSet for my queries.

I have been playing around with various simple queries, but have had problems
retrieving data with the following:

select * from table where table.column like "*such*"...

I have had problems with "like"...if I put an equal sign and the whole word,
the query returns properly.

I realize that I am pretty fresh in this area, but was wondering if there
is anyone who could possibly direct down the right path!

Mike
03-14-2000, 06:05 PM
Try using % instead of *. It worked for me when using Oracle. It could be
worth a try.

"Reza" <rkhalili@hotmail.com> wrote:
>
>hi there,
>
>I am pretty new to ASP and I am in the middle of building a sample application
>using ASP and Access.
>
>I am using the ADO Connection an RecordSet for my queries.
>
>I have been playing around with various simple queries, but have had problems
>retrieving data with the following:
>
>select * from table where table.column like "*such*"...
>
>I have had problems with "like"...if I put an equal sign and the whole word,
>the query returns properly.
>
>I realize that I am pretty fresh in this area, but was wondering if there
>is anyone who could possibly direct down the right path!

Brendan
03-14-2000, 07:47 PM
For Access you might try

"SELECT * FROM TableName WHERE FieldName = '*SUCH*' "

Single and double quotes are important.

"Mike" <michael.viglianco@bankofamerica.com> wrote:
>
>Try using % instead of *. It worked for me when using Oracle. It could be
>worth a try.
>
>"Reza" <rkhalili@hotmail.com> wrote:
>>
>>hi there,
>>
>>I am pretty new to ASP and I am in the middle of building a sample application
>>using ASP and Access.
>>
>>I am using the ADO Connection an RecordSet for my queries.
>>
>>I have been playing around with various simple queries, but have had problems
>>retrieving data with the following:
>>
>>select * from table where table.column like "*such*"...
>>
>>I have had problems with "like"...if I put an equal sign and the whole
word,
>>the query returns properly.
>>
>>I realize that I am pretty fresh in this area, but was wondering if there
>>is anyone who could possibly direct down the right path!
>