473,387 Members | 1,542 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.

Running Reports from Multiple Parameter Forms/Data in Access03

I have looked for some help on this and this article/thread was as close to what I was looking for as I could find.

http://bytes.com/forum/thread603918-...ter+Query.html

My only question is the end of the article talks about subforms and such and I don't think that's what I'm looking for exactly. My question is this:

I have a query named Final_Results with the following fields:

Position, E_Year, E_State, E_Type, Seat_District, Candidate, Party, Votes

This query contains election data from Presidential races, Senate races, Governors, Representatives races for all 50 states. In the data, the Seat_District might be null if it's a President/Governor position at stake. The rest should contain data.

What I'm looking for is the easiest manner to have 1 selection form to be able to output the most appropriate query lines for each of the 5 parameter fields (Position ---> Seat_District)

A user could choose any number of those 5 fields to query on, from Representative 1992 Maryland General Election, District 6 to 1992 alone.

What is the best manner to parse this query via form and then have that data outputted onto a custom made report for each contingency in criteria selection?

I hope this is clear. Basically 5 fields that may or may not be used in a parameter query and then utilized to fill in a report.

--- Update ----

I've gotten this form and filter to work properly by following the above link. However, the output is a form; not a query or anything I can then use in a report based off the filtered information.

Instead of the OpenForm command, is there an OpenQuery command that would only display the filtered information, making it usable for any number of reports?
Aug 12 '08 #1
1 1600
NeoPa
32,556 Expert Mod 16PB
I would consider using a filter when opening the report.

Basically, you use VBA to formulate a simple --> complicated WHERE clause string depending on how many of your form controls have data entered into them.

Open the report (DoCmd.OpenReport(...)) passing the parameter just worked out.
Aug 14 '08 #2

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

Similar topics

2
by: Michael Schmitt | last post by:
Hello. What is the usual way for running functions in parallel on a multiple-processor machine. Actually I want to run a single computationally expensive function with different parameter sets....
7
by: DD | last post by:
Hi I want the user to be able to view all reports from a form either by way of a list box or dropdown or ?? any help please DD
4
by: sparks | last post by:
We have a database that reads in and formats raw data. We were using queries to format the data per person and outputing reports. The other database has the persons personal information. I changed...
5
by: Jerry Hull | last post by:
I'm working with a database developed by an untrained person over several years - and on a network that has recently been upgraded with a new server installed and MS office upgraded from 2K (I...
4
by: Andy Davis | last post by:
I have developed a number of reports that are based on parameter queries where the user enters criteria such as a date range and a sales rep say. I want to be able to show a graphical picture in...
0
by: Henry | last post by:
Using ideas provided by some of you I was able to figure out how to get the names of the parameters fields of a crystal report specified at run time. The code below just basically puts the...
0
by: Dean Sabella | last post by:
Hi, I was trying to run a crystal report in the .net sample application given at: http://support.crystaldecisions.com/communityCS/FilesAndUpdates/ cppnet_win_subreport_basic.exe.asp (I've...
12
by: Bill Nguyen | last post by:
What's the VB syntax to run the CR report using the following SP? I use CrystalreportViewer and ReportDocument. Thanks Bill Here's the SP in SQLserver 2K: CREATE proc mysp_ReportSubmission...
1
by: TetoPR | last post by:
Hi, I'm trying to create a report that feeds from multiple Parameter Queries; I want those queries to share one Parameter Form (by this I mean a single form to alter the same criteria in my...
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: 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:
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
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
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
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...
0
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,...
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.