473,508 Members | 4,751 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Turn off Query Parm Prompts

Hey,

Is there any way to turn off the query parm prompts? I have a report
that must be printed for 53 different cities and the vba code loops
thru a table and passes the value to a select query. All works well
EXCEPT I see the Query Paramater dialogue box show. Any way to not
show this?

Sal
Nov 12 '05 #1
3 3760
sa**************@adp.com (sal cifone) wrote in message news:<4b**************************@posting.google. com>...
Hey,

Is there any way to turn off the query parm prompts? I have a report
that must be printed for 53 different cities and the vba code loops
thru a table and passes the value to a select query. All works well
EXCEPT I see the Query Paramater dialogue box show. Any way to not
show this?

Sal


Sal,
how about removing the query parameters from the query altogether and
then passing the city to the WHERE clause in the OpenReport command?

DoCmd.OpenReport "MyReport", acViewPreview, , "[City]='" &
rst.Fields("City") & "'"

Then if you have the cities in a table, you could just open a
recordset of the cities you wanted, pass them to the OpenReport
method, print out the report, and go to the next city record and
repeat. (I think you have to open/close the report a zillion times...
not sure thought.)

HTH,
Pieter
Nov 12 '05 #2
sa**************@adp.com (sal cifone) wrote in message news:<4b**************************@posting.google. com>...
Hey,

Is there any way to turn off the query parm prompts? I have a report
that must be printed for 53 different cities and the vba code loops
thru a table and passes the value to a select query. All works well
EXCEPT I see the Query Paramater dialogue box show. Any way to not
show this?

Sal


When inspecting the parameter-list in the query-editor screen (menu
Query > parameters ...) are the some other parameters declared not
given when invoking the query ? just remove them there. They can be
declared earlier, but now not active anymore. When removed from the
the SQL-query they have to be removed too in this menu. Or are there
some field-references between []-brackets in the SQL statement that
cannot be resolved to a table-field in spite of the parameters given
when invoking the query ?

Marc
Nov 12 '05 #3
Marc,

I think from the responses I have been getting, my original question was
not too clear.

I have a select query that prompts for Region and Job Code. I have a
module which open a two tables and loops thru the region field and the
job code field for that region. It then exports this info into an excel
file for each region and creates a tab for each job code for the region.
Saves the file and continues to the next region in the table.

My issue is that I see the query parameter input boxes show and populate
with the region and job codes.

(I supplied a snipit of code in another reply)

I do not want to see these propmpt. Is there a way to "Not" show them?

Thanks for your help.

Sal
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 12 '05 #4

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

Similar topics

10
125425
by: Resant | last post by:
I have a query : Exec 'Select * From Receiving Where Code In (' + @pCode + ')' @pCode will contain more than one string parameter, eg : A1, A2, A3 How can i write that parameters, I try use :...
0
1086
by: Doug | last post by:
Hi, I am using a form with some text boxes to populate some VBA code that calls up a query. Using MS Access 2000. I am using would like my query to read something like: SELECT * FROM where...
1
1455
by: SPM2 | last post by:
I have a query that needs to be run , The problem is with the prompts. I've turned of all the prompts in the tools->options->edit/find page but it still asks for deletion confirmation...is there...
5
10580
by: Ryan Hubbard | last post by:
Is it possible to get the recordset from an open query window? So you run the query. The window is open. Can vba retrieve this data?
5
2227
by: lis0122 | last post by:
I'm a database marketing manager for a small non-profit. I created a query that prompts you for a company name and then pulls a list of all of our contacts in the database in that company. Our...
3
3402
by: Bryan | last post by:
I've been looking over this newsgroup, but I can't find an answer to my problem. I see that a few others have posted this issue over the years, but none of them got a response. I'll give it...
5
15392
by: Annie | last post by:
hello guys, I have little experience working with C# and MS Access ... I am having an insert query with one datetime field and a boolean and couple of text and number fields as below: ...
1
1298
by: tom | last post by:
Is it possible to have a report with prompts/parameters, but without an underlying query? I've seen varying posts related to this, but I'm not seeing a concete answer. As I understand it, to make a...
13
2827
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...
0
7228
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
7332
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,...
1
7058
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
5057
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...
0
3206
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
3191
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1565
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
769
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
426
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...

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.