473,408 Members | 2,813 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

how can I bypass my query parameter

This is probably a really silly question but I am exhausted and cant
seem to find the answer. I have a query that I run from a command
button on a form. The query has three criteria set. The first is built
into the form and so is not a problem. Then the second and third
criteria prompt me for parameters. This all works fine and I get the
info I want broken down the way I want to see it. But sometimes I dont
want to filter at all on these two, and would like to see all of the
data. I have tried using all the wildcard options as in the halp files
but they are not working, seem to only relate to part strings. What
can I type into my parameter prompt to allow all records to show. Many
thanks.
Nov 13 '05 #1
4 8202
Try "*", as the criteria value to show all records. Why not create a pop-up
form that will show your choices and use the form's several control values
as the criteria for your query?

Something like:
Like IIf([Forms]![myForm]![pickValue] Is
Null,"*",[forms]![myForm]![pickValue])

-Ed
"Lightning Tony" <ge*******@uk2.net> wrote in message
news:db**************************@posting.google.c om...
This is probably a really silly question but I am exhausted and cant
seem to find the answer. I have a query that I run from a command
button on a form. The query has three criteria set. The first is built
into the form and so is not a problem. Then the second and third
criteria prompt me for parameters. This all works fine and I get the
info I want broken down the way I want to see it. But sometimes I dont
want to filter at all on these two, and would like to see all of the
data. I have tried using all the wildcard options as in the halp files
but they are not working, seem to only relate to part strings. What
can I type into my parameter prompt to allow all records to show. Many
thanks.

Nov 13 '05 #2
ed's got it. you should just be able to just plug in a parameter like:

Like('*')

and have it retrieve all records for that field.

Ed Robichaud wrote:
Try "*", as the criteria value to show all records. Why not create a pop-up form that will show your choices and use the form's several control values as the criteria for your query?

Something like:
Like IIf([Forms]![myForm]![pickValue] Is
Null,"*",[forms]![myForm]![pickValue])

-Ed
"Lightning Tony" <ge*******@uk2.net> wrote in message
news:db**************************@posting.google.c om...
This is probably a really silly question but I am exhausted and cant seem to find the answer. I have a query that I run from a command
button on a form. The query has three criteria set. The first is built into the form and so is not a problem. Then the second and third
criteria prompt me for parameters. This all works fine and I get the info I want broken down the way I want to see it. But sometimes I dont want to filter at all on these two, and would like to see all of the data. I have tried using all the wildcard options as in the halp files but they are not working, seem to only relate to part strings. What
can I type into my parameter prompt to allow all records to show. Many thanks.


Nov 13 '05 #3


Hi gang
Thanks for the prompt reply. I have managed to achieve what I want by
adapting your ideas a little. Maybe I didn't explain that I am a
newcomer to VB so I didn't really understand the answer about popup
forms control values. What I did was type directly into the criteria row
of the underlying query as follows;

Like IIf([text] Is Null,"*",[text])

where text is a different message in each field that I am filtering on.
I don't understand it but it works so I am happy!Just for clarification
could I have found a way that doesn't require some kind of entry into
the query? When you say I should be able to just type "*" do you mean
directly into the parameter prompt box, because I had been trying just
about every combination and just kept getting blank queries (the column
headings display but no records). I have tried typing * on its own, in
quotation marks, in round brackets, in square brackets, with and without
quotation marks in brackets...all to no avail

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 13 '05 #4
What you've got shouldn't require any input: just hit Enter when the
parameter box appears, and you should get everything back.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

"Tony Harvey" <to***********@hotmail.com> wrote in message
news:41**********@127.0.0.1...


Hi gang
Thanks for the prompt reply. I have managed to achieve what I want by
adapting your ideas a little. Maybe I didn't explain that I am a
newcomer to VB so I didn't really understand the answer about popup
forms control values. What I did was type directly into the criteria row
of the underlying query as follows;

Like IIf([text] Is Null,"*",[text])

where text is a different message in each field that I am filtering on.
I don't understand it but it works so I am happy!Just for clarification
could I have found a way that doesn't require some kind of entry into
the query? When you say I should be able to just type "*" do you mean
directly into the parameter prompt box, because I had been trying just
about every combination and just kept getting blank queries (the column
headings display but no records). I have tried typing * on its own, in
quotation marks, in round brackets, in square brackets, with and without
quotation marks in brackets...all to no avail

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 13 '05 #5

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

Similar topics

2
by: The Plankmeister | last post by:
Hi... I have a query which I'm accessing through PHP as a stored procedure. However, I need to be able not to pass a couple of parameters in certain situations. When I do this, I get an error: ...
15
by: deko | last post by:
I need a way to create a table with a programmatically defined name. I have a Make Table query that will create the table with the name that I put in the query, but I don't know how to (or if I...
3
by: cassandra.flowers | last post by:
Hi, I was wondering if it is possible (Using access) to have a query parameter as a drop down box rather than a text box? e.g. typing as criteria for a query produces a box with a text box...
6
by: Andy | last post by:
Hello, I am having many problems with setting up a parameter query that searches by the criteria entered or returns all records if nothing is entered. I have designed an unbound form with 3...
3
by: Uwe | last post by:
Howdy! I've googled and googled for this without success, and either it's so easy that nobody has ever asked, or there is some serious reason nobody would do this. But I'm going to ask anyway....
0
by: HomerS007 | last post by:
Hi, I'm using asp.net 2.0 and sql server 2000 for my first ever project. On one of the page in the application, I want to limit what the user can see based on his/her login. It's a page that...
20
by: exipnakias | last post by:
Hello Guys. In a form I created a listbox which looks up the values of a table. I want: 1) ..to create a query where a parameter will be needed in order to be loaded. But I do not want to...
4
by: hobbit2612 via AccessMonster.com | last post by:
Hi, I wonder if someone might be able to help me please. I'm fairly new to MS Access, and everything I know is self taught so please bear with me. I have put together a query which consists...
1
by: codexxx | last post by:
Hi All, I have got a requirement from a client who wants the query parameter to be hidden in the browser. What he wants is like following. If a url link becomes like...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.