473,385 Members | 1,757 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,385 software developers and data experts.

Parameter Query Options

L've created a parameter query where the options are True, False and All.
Using a combo box the user can select on of these options. Getting True or
False to work is easy. Howe do I select both options when All is selected?
--
Tony
Feb 2 '07 #1
3 926
On Feb 2, 2:53 pm, Tony A. <T...@discussions.microsoft.comwrote:
L've created a parameter query where the options are True, False and All.
Using a combo box the user can select on of these options. Getting True or
False to work is easy. Howe do I select both options when All is selected?
Post the SQL code. What is the datatype of the parameter?

Feb 2 '07 #2
Tony

You mean you have an SQL clause as

Select * from TabelX where y = @y

And you will now dynamicly remove that where. I thought that typical from
SQL procedure is that you cannot remove that where.

All true and false does of course not exist, if it is both, than it means
there is no criteria.

Cor

"Tony A." <To***@discussions.microsoft.comschreef in bericht
news:DC**********************************@microsof t.com...
L've created a parameter query where the options are True, False and All.
Using a combo box the user can select on of these options. Getting True
or
False to work is easy. Howe do I select both options when All is
selected?
--
Tony

Feb 3 '07 #3
Cor, in that case, I'd use two different sp's, one with the boolean, and
one without.

Robin S.
-------------------------------------
"Cor Ligthert [MVP]" <no************@planet.nlwrote in message
news:u4**************@TK2MSFTNGP03.phx.gbl...
Tony

You mean you have an SQL clause as

Select * from TabelX where y = @y

And you will now dynamicly remove that where. I thought that typical from
SQL procedure is that you cannot remove that where.

All true and false does of course not exist, if it is both, than it means
there is no criteria.

Cor

"Tony A." <To***@discussions.microsoft.comschreef in bericht
news:DC**********************************@microsof t.com...
>L've created a parameter query where the options are True, False and
All.
Using a combo box the user can select on of these options. Getting True
or
False to work is easy. Howe do I select both options when All is
selected?
--
Tony


Feb 3 '07 #4

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

Similar topics

3
by: WGW | last post by:
Though I am a novice to MS SQL server (2000 I believe), I can do almost! everything I need. Maybe not efficiently, but usefully. However, I have a problem -- a complex query problem... I can...
3
by: Aaron | last post by:
Hello, I'm trying to limit a report to a list of parameters that I pass in. The report and the underlying query both use the column FirstName. Whenever I try to limit the FirstName in via the...
3
by: thomas goodwin | last post by:
I have a query which asks for a parameter value to execute it. To see the results I have to: a) click on the query -- the "Enter Parameter Value" window pops up. b) enter the parameter value c)...
4
by: Lightning Tony | last post by:
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...
2
by: gritter55 | last post by:
I have a parameter query in Access 97 that working for 99% of my users. But for 2 of them, when they run it, it skips over the input box (they never see it) and simply returns an empty set. I...
3
by: Steven J. Reed | last post by:
I must be missing something, because this should be easy to do. After the user has selected several options on a page, I do a database query which returns a few records that I want to pass to...
1
by: R Hedges | last post by:
Hi there-I'm an AMATEUR VB.NET programmer, who has hacked together a small VB.NET application that can get information from remote machines using the System.Management namespace. MY APPLICATION...
3
by: jtrapat1 | last post by:
Im using sql server 2005 and visual studio 2005. I just want to create some reports and deploy them to the local reportserver for an intranet application by using reporting services. I'd like to...
6
by: limperger | last post by:
Hello everyone! This is by no means urgent nor important, but just in case anyone has encountered this problem... Is it possible, in a parameter query (with its default Msgbox prompting to enter...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...

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.