473,506 Members | 16,951 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

I fear

this may be a stupid question...
how do I create a parameter query that is the equivalent of
where x contains "something" and the results return all entries that
have the word something anywhere in the field
I know I can use Like with an * but I'd rather not.

Nov 13 '05 #1
4 1248
Impy wrote:
this may be a stupid question...
how do I create a parameter query that is the equivalent of
where x contains "something" and the results return all entries that
have the word something anywhere in the field
I know I can use Like with an * but I'd rather not.


Why don't you want to use Like with an * ? As that is the obvious and
regular answer to the question.

SELECT anything FROM yourtable WHERE x Like '*something*'

If you want to pass the something part as parameter, the SQL looks like this

SELECT anything FROM yourtable WHERE x Like '[yourparameter]'

and you should supply the *'s with the parameter value. I haven't got
this working in another way.
--
Bas Cost Budde, Holland
http://www.heuveltop.nl/BasCB/msac_index.html
I prefer human mail above automated so in my address
replace the queue with a tea
Nov 13 '05 #2
Hi, Thanks for your reply. I figured that was the answer. I would like
to avoid using the * because the users of this database are not as
smart and don't always know to put the * in front or behind depending
on what data they are looking for. I just thought it would be nice to
make it painless for them.

Nov 13 '05 #3
Use a criterion expression similar to this:

Like "*" & [Enter the parameter:] & "*"
--

Ken Snell
<MS ACCESS MVP>

"Impy" <im******@yahoo.com> wrote in message
news:11**********************@c13g2000cwb.googlegr oups.com...
Hi, Thanks for your reply. I figured that was the answer. I would like
to avoid using the * because the users of this database are not as
smart and don't always know to put the * in front or behind depending
on what data they are looking for. I just thought it would be nice to
make it painless for them.

Nov 13 '05 #4
Thanks! Can't wait to try it out!

Nov 13 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1913
by: Nomen Nescio | last post by:
want mor phase, want control more phase in the WAVE 1) fear, rage - PAY never in God book pay in arrogance book, you reach, or man you meet, in sit of weak man law as mor is manifest, less...
4
4336
by: Granite Stone | last post by:
I am posting this at this newsgroup protesting a soon to be lecture at the United Church of Canada, Toronto. Please read the article and write to the University of Canada and www.tsmr.org It has...
4
2015
by: DonLi2006 | last post by:
Probably this question has been asked many times, however, I have not found a satisfactory answer, hence, post it here. We in the industry know that there's nothing to fear for downloading and...
18
1787
by: subscribe | last post by:
How to conquer fear of programming?
4
1202
by: firewoodtim | last post by:
I have a set of php scripts that make it possible for a client to build and update his/her own website. It is a bit like a CMS on steroids. the client has access to forms, but does not have...
0
1289
by: aassime abdellatif | last post by:
Question: How to obtain success and prosperity in this world and hereafter? What kind of success or prosperity that Islam wants the Ummah Islam gain in this world? Answer: Praise be to...
3
4534
FlamingoRider
by: FlamingoRider | last post by:
I keep getting a syntax error on line 11 (while Running = True:) and I'm not sure what's going on. If this is something horribly simple I apologize. I appreciate any help. myFears=" " def...
0
7218
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7103
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7307
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7478
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5614
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3188
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3177
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1532
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
755
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.