473,756 Members | 3,211 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Input Parameter Query Window - Duplicated?

Hi,
I have created a Subform which SourceObject is a parameter query.

This is the Query:
Qry Name:80IsscomPr oduct

SELECT *
FROM Isscomp28
WHERE [BPP_NM] Like [Enter Product Name];

This is the code attached to a cmd button that updates a subform with
the result of the paramenter Query.

Private Sub CmdIsscombyName _Click()
'**** Update Subform
Me!sfrInfo.Sour ceObject = "Query.80Isscom Product"
'**** Update Label of Subform
Me!lblSfrInfo.C aption = "Complete Isscom List by Product"
End Sub

The problem:

The Enter Parameter Window seems to be duplicated. I fill out the
parameter and press Enter and the Enter Parameter Window appears again.

Any ideas why is this happening?
By now i can bypass the first Input Parameter pressing enter. I think I
can use sendkeys for solving this.....
Regards
LC

Nov 13 '05 #1
1 2578
On the form with the button, place a textbox to enter the parameter's value
in. Once the value has been entered, click the button. Change the parameter
in the query to point to this textbox and it will get the value from there
instead of prompting you.

Example:
WHERE [BPP_NM] Like [Forms]![MyForm]![MyTextbox];

--
Wayne Morgan
MS Access MVP
<ca******@yahoo .com> wrote in message
news:11******** **************@ g44g2000cwa.goo glegroups.com.. .
Hi,
I have created a Subform which SourceObject is a parameter query.

This is the Query:
Qry Name:80IsscomPr oduct

SELECT *
FROM Isscomp28
WHERE [BPP_NM] Like [Enter Product Name];

This is the code attached to a cmd button that updates a subform with
the result of the paramenter Query.

Private Sub CmdIsscombyName _Click()
'**** Update Subform
Me!sfrInfo.Sour ceObject = "Query.80Isscom Product"
'**** Update Label of Subform
Me!lblSfrInfo.C aption = "Complete Isscom List by Product"
End Sub

The problem:

The Enter Parameter Window seems to be duplicated. I fill out the
parameter and press Enter and the Enter Parameter Window appears again.

Any ideas why is this happening?
By now i can bypass the first Input Parameter pressing enter. I think I
can use sendkeys for solving this.....
Regards
LC

Nov 13 '05 #2

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

Similar topics

8
5272
by: rgonzale6 | last post by:
Hello. I'm using SQL query analyzer to run some queries against an SQL2000 DB. Unfortunately, my previous SQL experience is some Oralce SQL I took in school. To put it simply, I'm trying to write a query to pull records that match a variable input. In Oracle, I'd use a substitution variable like this... SELECT * FROM jobs WHERE jobid = &job_id_to_query;
2
2183
by: PerryC | last post by:
Is there a way to set a certain format under the Query Criteria for input? i.e.: As user type 200000000, 200-00-0000 is displayed in the query input box. However, 20000000 is the actual value querried. I am not sure if I make myself clear or not. Thanks in advance. Sincerely, Perry
6
2506
by: Robin S. | last post by:
**Eric and Salad - thank you both for the polite kick in the butt. I hope I've done a better job of explaining myself below. I am trying to produce a form to add products to a table (new products). Tables: tblCategoryDetails CategoryID SpecID
13
11439
by: Richard Hollenbeck | last post by:
To prevent future apostrophe bugs and errors, isn't it just simpler to forbid an apostrophe from being entered into a text field? For example, couldn't "Alice's Restaurant" be changed to "Alices Restaurant" etc. automatically and programmatically during data entry? This would eliminate my concatinated strings from producing errors when I base the string on a query. Think this is an example of the "Dreaded Apostrophe Bug." If I enter a...
2
14879
by: lgo | last post by:
I have read several variations of this topic posted on this news group. However I was not able to find the answer for my problem. I am trying to build code (see below) to update a large single record using data from a temporary (editing) table with identical field structure. I iterate through the fields (some 50 of them) with a For Each - Next loop to update each field with the SQL statement. The updating works fine with numeric data type...
5
5290
by: gimme_this_gimme_that | last post by:
I'd like to create my own version of google suggest GS. If you haven't seen GS check it out at : http://www.google.com/webhp?complete=1&hl=en I've reviewed several AJAX write-ups on the internet and understand the issues around passing and fetching data from the client to the server. Well, at least as it's described in various tutorials.
2
5426
by: mudman04 | last post by:
Hi, I searched online for some similar issues that I am facing but was not able come up with anything. I am fairly new with Access (2 months experience) and I am trying to remove a message stating, ENTER PARAMETER VALUE when I am generating a report. I know that the culprit lies in the query stored in the report. I have entered data in the CRITERIA (entered forms!frmproducts!lngproductID) window and OR (entered...
1
7330
by: TonyJH | last post by:
Hello, I have a database in Access2003. I have set up several queries that use the parameter entry . Each query produces different outputs from various tables that go into a report. Sometimes, a report calls for more than one query using the same serial number. Is there a way to not require the operator to input that same parameter for every query short of building a hugh query for all the data for that report? For a group of queries, I...
3
1804
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
9275
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10034
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
9872
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
9713
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
7248
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
5142
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...
1
3805
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
3358
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2666
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.