help with wildcard

P

Paul M

Hi
I wish to make it so someone can select all(non
geographic) in Geographical location instead of only one
option if they wish.I have been informed that I need to
introduce a wild card. can anyone help
Thankyou

here is the SQL

SELECT Format([Amount_required],'Currency') AS
fmtAmount_required, Amount_required, Sponsorship_type,
Geographical_location, Short_description,Project_ID FROM
Results WHERE (Amount_required <= ::Amount_required::
AND Sponsorship_type LIKE '%::Sponsorship_type::%' And
Geographical_location LIKE '::Geographical_location::')
 
J

Jim Buyens

Howdy.

Change
LIKE '::Geographical_location::'
to
LIKE '%::Geographical_location::%'
as you did for the Sponsorship_type field.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
P

Paul M

Thanks Jim
-----Original Message-----
Howdy.

Change
LIKE '::Geographical_location::'
to
LIKE '%::Geographical_location::%'
as you did for the Sponsorship_type field.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------

-----Original Message-----
Hi
I wish to make it so someone can select all(non
geographic) in Geographical location instead of only one
option if they wish.I have been informed that I need to
introduce a wild card. can anyone help
Thankyou

here is the SQL

SELECT Format([Amount_required],'Currency') AS
fmtAmount_required, Amount_required, Sponsorship_type,
Geographical_location, Short_description,Project_ID FROM
Results WHERE (Amount_required <= ::Amount_required::
AND Sponsorship_type LIKE '%::Sponsorship_type::%' And
Geographical_location LIKE '::Geographical_location::')
.
.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top