-
October 11th, 2004, 04:51 AM
#1
Data Report Help
I am a bit out of my depth here. I started a simple accounts program that enters information into a MS Access database, so far so good. As well as enter the data I can view records one at a time and edit or delete them.
Now I need to make a report. My main table has fields holding the following: id, date, category, supplier, amount, notes. Firstly I want to create reports between a user selectable start date and end date. On the report I want to list all the records between these dates, ordered by categories, and show a total of the amounts under each category as well as a final total at the end.
I have been trying to use Data Reports and can generate a report showing all the fields, but so far it shows all records. I have no idea how to add a start date and end date, or how to add in totals.
Any advice would be greatly appreciated.
-
October 11th, 2004, 05:34 AM
#2
Re: Data Report Help
To put in totals / categories, you will need to create group headers / footers in your report.
You will also need to look at using Shape, to create a recordset which fits the structure of your report.
You can specify the report source of the report, before openning it i.e. create a record source and then say
Code:
Set rpt.DataSource = adrQry
where rpt is the name of your report, and adrQry is the name of your recordset.
HTH
JP
Please remember to rate all postings.
-
October 11th, 2004, 05:39 PM
#3
Re: Data Report Help
Thanks for the help. Now I am getting errors "Report width is larger than the paper width". How would I stop this? I have almost nothing in the report at the moment.
-
October 11th, 2004, 05:50 PM
#4
Re: Data Report Help
Oh. I figured that one, I had a line on the report that was stopping me resize it. Guess I better do some readin on the Group Headers / Footers.
-
October 11th, 2004, 07:43 PM
#5
Re: Data Report Help
I have no idea how to use the group headers/footers. I drag a field into a group header and I get a "Report sections do not match data source" error. If anyone can give me a few hints on using the group headers / footers I would really appreciate it.
-
October 11th, 2004, 08:44 PM
#6
Re: Data Report Help
You need to look for help on the SHAPE command. I only ever use it as an SQL statement, so if you're using it like that I can help, but if you use the data environment, I'm can't help you.
The shape command, basically allows you create different recordsets within the one recordset eg one for each header, and then one for the detail lines.
Sorry I can't be of more help to you.
JP
JP
Please remember to rate all postings.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|