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

Sub report dates. I have report with 2 sub reports attached.

I have report with 2 sub reports. the sub reports provide balances for the main report. this is sub 1 provides balance to end of last month. sub 2 provides balance for current month.

In the criteria of each query I have these expressions
sub 1: <=[reports]![rptstats]![txtdateto]

sub 2:>=[reports]![rptstats]![txtDateFrom] And <=[reports]![rptstats]![txtdateto]

these work fine returning correct balances.

Problem is I need to retype the required dates several times.

can anyone advise or suggest a better way of doing this report.

thanks
Jul 31 '14 #1

✓ answered by zmbd

Version of Access?
---
Use a form to hold the information and then refer to that form is the normative.
either via:
MS Access: Using parameters with queries and reports (ACC2003)
I know that this is for ACC2003; however, this is the same in ACC2007/2010/2013

or
Open the report in code and pass parameters to the report.
OpenArgs Property (Acc2003)

-
More complex method: Use a tempvars collection member to hold the information and then refer to that member of the collection in the formula

3 967
zmbd
5,501 Expert Mod 4TB
Version of Access?
---
Use a form to hold the information and then refer to that form is the normative.
either via:
MS Access: Using parameters with queries and reports (ACC2003)
I know that this is for ACC2003; however, this is the same in ACC2007/2010/2013

or
Open the report in code and pass parameters to the report.
OpenArgs Property (Acc2003)

-
More complex method: Use a tempvars collection member to hold the information and then refer to that member of the collection in the formula
Jul 31 '14 #2
thanks for the referral link I am trying to work my way through this at the moment. thankyou again for your help and advise.
Jul 31 '14 #3
I have followed the instructions on the link you suggested but still have the same problem. it request date and item twice and every time I move the mouse it requests the information again.
Do you have any other suggestion or a reason why this is happening
Jul 31 '14 #4

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

Similar topics

1
by: Fred Zuckerman | last post by:
I have 8 reports that I want to run. Each report is only about 6-7 lines long. I'd like to get them all on a single page. So I created a parent report and made each of the 8 desired reports a...
3
by: Pecanfan | last post by:
Hi, I've got an access report which contains a sub-report. The sub-report contains various items in a group Footer which culminates in a running sum text box called txtGrandTotal. I want to...
1
by: Martin Kilgore | last post by:
I bought the standard version of Visual C# last year and I am starting to work with it. The book I am using says it should have crystal reports in it but when I go to add a new item there is no...
0
by: Gary Anniss | last post by:
Hi I have several reports that I have imported from Access into SQL Reporting Services 2005. They are multi-level grouping reports and SQL Server Reporting Services generates rectangles and lists...
3
by: ye2127 | last post by:
Hi, I have a report called 'schools' This report lists the percentage of schools performing a certain action In the 'schools' report I have a subreport which lists...
2
by: microsoft . public . sqlserver | last post by:
I am a Web developer. I am new to VB 6.0 and Crystal Report. I have joined an organisation where there is an application running(developed in VB6 and crystal report 7). I have to modify one report....
0
by: r0ckster | last post by:
Hi! I have an asp application that is using crystal report 10/crystal report viewer to view reports on the web. This app works well in windows 2k but when i migrated the code to xp, the error...
0
by: kishorebarik26 | last post by:
Dear reader, I need a way by which I can call one report from another report in Crystal Report or in Rdlc Report in VB.net 2005. Two report will not interlinked any way, so I cannot use Subreport...
1
by: dzgreek | last post by:
I use VB6 and for the first time its Data Report designer - I am using it without a data environment and I set my reports datasource property within my code. All I ever get is this error message...
11
by: wisni1rr | last post by:
I have two report reports. One report displays a field called . The second report is a report for a single record in mor detail. I am trying to convert this textbox on my first report into a...
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: 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
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: 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
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...
0
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...
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.