473,698 Members | 2,086 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Parameter Query Prompts

I have a paramter query that wants either of 2 date fields in a table to be before a certain date.

Select * from tblExample where Date1 < [dtCutoff] or Date2 < [dtCutoff]

When I open this query, it prompts me twice for dtCutoff. I've verified I'm using the same spelling and capitalization.

Is there a way to make it only prompt once?

Nov 13 '05 #1
2 1630
On Sun, 23 Jan 2005 17:06:46 GMT, HateSpam wrote:
I have a paramter query that wants either of 2 date fields in a table to be before a certain date.

Select * from tblExample where Date1 < [dtCutoff] or Date2 < [dtCutoff]

When I open this query, it prompts me twice for dtCutoff. I've verified I'm using the same spelling and capitalization.

Is there a way to make it only prompt once?


As far as I can see, it should only prompt once.
Is the query the record source for a report?
Are you sure the second prompt is from the query, and not from a no
longer used control in the report of which the query is record source?

--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
Nov 13 '05 #2
As far as I can tell it should prompt you twice, because you are passing
along two parameters.
Maybe I don't understand the question?

"HateSpam" <Ha******@nospa m.com> wrote in message
news:GQ******** ***********@fe2 .columbus.rr.co m...
I have a paramter query that wants either of 2 date fields in a table to be
before a certain date.

Select * from tblExample where Date1 < [dtCutoff] or Date2 < [dtCutoff]

When I open this query, it prompts me twice for dtCutoff. I've verified
I'm using the same spelling and capitalization.

Is there a way to make it only prompt once?

Nov 13 '05 #3

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

Similar topics

5
4292
by: MX1 | last post by:
Simpler way to ask question from my previous post. I wrote a query and it has a paramter field in it. I want to enter a date with the current year. If it I put in 6/30/2003, it works great. If I put in some kind of a variable based input for the parameter like '6/30/' & year(now()), it doesn't work. Is there any way to concatenate text and a variable at the input of a parameter query. THIS IS DRIVING ME NUTS. PLEASE HELP. :)
13
2857
by: forbes | last post by:
Hi, I have a user that used the Query Wizard to create a query in Access. Now she claims that her master table is missing all the data that was excluded from the query. Can you create anything other than a select query using the Wizard? What do you think happened to her data? I am working remotely until Friday, so I can't get down to her office and check out what she did.
2
9445
by: angie | last post by:
I need to figure out how to create a user interface to search a query, but here's the bad part...I need to account for criteria on at least 7 of the fields. Here's what I'm thinking I need to do: Create an unbound form with unbound fields for all 7 of the fields in the query. Then in the query create parameters that refer to those fields. But it's not that simple because the user needs the flexibility of filling in as many or as few...
2
20446
by: Dud Bug | last post by:
I have a query in an Access db that prompts the user for info. (e.g. a primary key representing a company) before compiling the relevant table of results. This works fine in Access but I want to use this query from within VB.Net. But how do I, in code, pass a parameter to the Access query?
6
12471
by: fieldja | last post by:
I have a form called OwnerForm. It contains a combo box called Owner. The combo box looks up names from a table called OwnerName. It contains fields called OwnerID and Owner. I also have a main form called ProjectsForm. This form has several fields to enter data. I have a query that is called Owner Query. This query contains the fields IDNumber.Projects2 Team.Projects2 and Owner.OwnerName getting information from tables. On the...
3
1800
by: vljones | last post by:
I am either having an extended blond moment or have been looking at this too long. This is a basic question but I simply cannot get my head around the solution. I have a Search form with grouped radio buttons. Depending on the selection a different query will run. The problem I am incurring is when I am querying more than one table. As an example: SELECT tbl_Claim.Txt_InsuredName, tbl_Claim.Date_DOL, tbl_Claim.Mem_PolNo,...
0
1383
by: jschmidt | last post by:
I am working in MS Access 2003. I made a parameterized query and would like to change the title of the parameter window that prompts the user for input. Does anyone know how to do this? I seem to remember doing this a while back where you seperate the parameter somehow and the first part shows up as the title and the second part shows up as the message box dialog, but can't remember how to do this. Please help. Thanks.
1
1331
by: Gogo | last post by:
Older query has parameter prompt popping up. How do I get rid of the prompts? If I wanted to keep one parameter prompt how do I learn what needs to be keyed in?
25
4443
by: DanicaDear | last post by:
I am trying my hand at my first ever Access report. It is based on a two parameter query (start date, end date). When I use the report wizard and click "view report" the report prompts me for the two queries. Great! However, when I close it and re-run the report, it prompts me for a third parameter: HOTSTICK_FAILURE.DATE_ENTERED. The first half is a table name; the second half is a table field name. The query this report is based off...
0
9157
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9028
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8861
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6518
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4369
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4619
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3046
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 we have to send another system
2
2330
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2001
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.