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

Passing dates to a query for use in a chart

Using Access 2002.

I have a chart in a report that is currently based on a query in which
the user enters the start and end date for the chart to display. Both
the start and end dates have been identified as parameters so that the
date range can be found without causing an error. So far so good,
report works as it should.

Here's the problem. There are several reports that need to be printed
at the end of month that use the same date ranges. Is there any way
to have the query pick up its start and end dates from a form instead
of entering it for each report? I have tried experimenting with this,
but have a problem with the parameter values. If I completely remove
the parameter values, I get the typical OLE error. If I attempt to
modify the parameters to match the Forms!.... information, I get a
bracketing error. Has anyone been able to get through this and if so,
what did you do?

Thanks for any help you can provide,

Mike.
Nov 12 '05 #1
1 3843
Yes, have you tried a "query by form?" Create an unbound form with two
unbound date-datatype text boxes. Make a separate query for each of your
reports and in the criteria row of the date column of the queries, add this:
"Is Not Null And Between [Forms]![your new form's name]![name of BEGINNING
date unbound text box on form] And [Forms]![your new form's name]![name of
ENDING date unbound text box on form]." (Without the quotes!) Be sure each
of your reports has the applicable parameter query as its record source.
Add a button for each report on the unbound form. Now, you can print all of
your reports from the new form without reentering the dates.

Denny G.
"Michael DeLawter" <mi********@hotmail.com> wrote in message
news:40*************************@posting.google.co m...
Using Access 2002.

I have a chart in a report that is currently based on a query in which
the user enters the start and end date for the chart to display. Both
the start and end dates have been identified as parameters so that the
date range can be found without causing an error. So far so good,
report works as it should.

Here's the problem. There are several reports that need to be printed
at the end of month that use the same date ranges. Is there any way
to have the query pick up its start and end dates from a form instead
of entering it for each report? I have tried experimenting with this,
but have a problem with the parameter values. If I completely remove
the parameter values, I get the typical OLE error. If I attempt to
modify the parameters to match the Forms!.... information, I get a
bracketing error. Has anyone been able to get through this and if so,
what did you do?

Thanks for any help you can provide,

Mike.

Nov 12 '05 #2

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

Similar topics

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...
2
by: Don Wash | last post by:
Hi All! I've been searching everywhere for a simple sample of producing a bar graph using CrystalReport by specifying SQL Query, and I've found none of it! I find so many complex samples with so...
9
by: laurenq uantrell | last post by:
I've gotten sort of fed up with dealing with regional date settings on the client side and am considering the following scheme - just wondering if anyone has a negative view of it or not: ...
6
by: jjturon | last post by:
Can anyone help me?? I am trying to pass a Select Query variable to a table using Dlookup and return the value to same select query but to another field. Ex. SalesManID ...
5
by: devagupt | last post by:
I have a question . I have a Chart which i run from a query. The chart has 3 fields Line , Date , Time in mins. The purpose of the chart is to display the sum of all the "time in mins" in a...
3
by: Widge | last post by:
Hi, I've made a piece of VBA that uses a combination of combolists and listboxes to run a query. I just can't think of a way to make this query generate a chart based on its results. Here is my...
2
by: MobiusDick | last post by:
Hi All, I'm in the process of creating a database that allows users to enter details into a form which includes a date range as start and end dates. I have used the inbuilt Calendar Control...
3
by: cmartin1986 | last post by:
I have a problem I have never seen before maybe someone can help. I wrote a query and everything was working fine, I then built a chart on it, still so far so good. Management decided they wanted...
18
by: JGrizz | last post by:
Greetings, I first off want to state that I am new to the forum, so if this question ends up in the wrong area, I apologize. This pertains to Access 2003/VBA/SQL issues... I have been doing some...
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: 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
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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...

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.