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

Multiple Parameter Prompts

I built a database at my job for tracking and reporting debt records. I am very new at using Access and have basically trained myself. Here's my problem:

I created a parameter query using a form to prompt for a begin date and an end date.This returns a report with a result set of all records that fall within the dates specified. The report has 3 sub reports as well, which also uses the date criteria from the form. When I enter my begin and end dates into the form the reports pop up, but then additional parameter boxes pop up multiple times asking for the same dates over and over again. I'm assuming it's because I need to enter the dates for each report and subreport. Is there a way for me to stop this from happening?
Jan 10 '08 #1
4 2997
zaidlig
45
I would declare the variables by name for your start and stop dates as "Public". You declare them once and all your forms and reports will use the same values whenever they are changed.
Jan 11 '08 #2
MikeTheBike
639 Expert 512MB
I built a database at my job for tracking and reporting debt records. I am very new at using Access and have basically trained myself. Here's my problem:

I created a parameter query using a form to prompt for a begin date and an end date.This returns a report with a result set of all records that fall within the dates specified. The report has 3 sub reports as well, which also uses the date criteria from the form. When I enter my begin and end dates into the form the reports pop up, but then additional parameter boxes pop up multiple times asking for the same dates over and over again. I'm assuming it's because I need to enter the dates for each report and subreport. Is there a way for me to stop this from happening?
Hi

If the dates are entered into a form (Textboxs), then I would link the query to the text boxes. However, for this to work the form must be loaded (not necessarily visible) when the queries run.

MTB
Jan 11 '08 #3
Minion
108 Expert 100+
MTB has the right idea here I think. Though I'm not sure exactly what is driving the sub reports so that makes it a bit difficult. Currently, how are they retrieving their values for the start and end dates? This will really determine the best method of passing these values to them. It may be a simple as adding a hidden field on the report and setting up a parent / child type relationship to the main report or the values could be passed programically.

Hope this helps.

- Minion -
Jan 11 '08 #4
zaidlig
45
Declaring a Public variable is the easiest way since you don't need hidden fields and the forms that was used to request the report need not be open.

Which means you can open report after report or form after form in no specific order and the dates wil be avaibale to all your objects.

Declaring a Public variable is one line of code.
Jan 11 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

5
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...
1
by: Bill Nguyen | last post by:
Report source is an SQLSERVER 2K store procedure. VB.NET application. Report created by CR 8.5. At runtime, I still had to click "CANCEL" to bypass the parameter prompts before the report display...
3
by: Eric Fleet | last post by:
I have an installation issue. For reasons that are beyond my control, folks log into their PC with administrative rights (don't ask). I want to 1) Install a program that will run for whatever user...
2
by: visionstate | last post by:
Hi there, I am working on a form that uses 3 text boxes and 3 combo boxes. When any data is entered into any of these, I click a command button and this requeries a sub query in the form and...
2
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:...
8
by: Mark Welch | last post by:
I am at a complete loss on how to do this. I am using Microsoft Access 2000, to implement a preliminary version of a reasonably modest relational database. I have two Access Tables (imported...
5
by: hominamad | last post by:
Hi, I have an ADP App connecting to a SQL 2005 database. I have a continous form which I want to fill myself based on a stored procedure call I do in VBA. I've tried using Me.Recordset and...
25
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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
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: 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
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.