Discussion Locked

Access 2000 reports

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hello,
I am designing a database in Access2000 and I am having problems. When I run a query on certain data, the report I have designed will only read the latest data. Is there any way to get all the data entries on the report so that I can show a total billing summary on all entries. Also I need to know if there is a way to place data from a Access 2000 database into an Exel 2000 pre-existing spreadsheet and have it update the spreadsheet automatically as data is entered into Access. This particular problem is holding up the completion of this database and I would appreciate any and all help that I can get.
thank you

5 replies

by roc180

To answer the first part of your question it sounds like your query is not pulling all of your data OR you are grouping in your report. I don't understand what you mean when you say "the report I have designed will only read the latest data". If you want send me your database and explain what you want your report to look like and I can work it out for you. As for the second question, yes it is possible to stream data from Access into an existing Excel spreadsheet using OLE automation. The tricky part is how/when do you want the data to appear in Excel(same workbook?, same worksheet?,column/row ranges?) will all of the previous parameters remain constent? All these things need to be answered. I will send you a nuts and bolts example of OLE automation. Maybe that will be enough to get you started.

Good Luck

Neal Martinelli

by bob sellman

While you haven't provided enough information to answer the first part of your question, I would suggest a few steps to take:
First, what do you get when you run the query (which I assume is supposed to show all of the data)? You must be sure thatall the data you want is displayed on the query, otherwise your query needs to be corrected.

If your query has problems, be sure all number fields contain a number (not a null), or use the nz([FieldName)] function to insure handling of null as 0 in math.

Second, if your report is in a format like the following (using vendor as the group):

Vendor
(details) Bill 1
Bill 2
....
Total Bill 1 + Bill 2 + ...
Total all vendors

This assumes that your query shows the vendor and the value of each bill for that vendor. You would set sorting/grouping in the report to sort on vendor and show the header and footer for vendor. Then calculate the total for each vendor. Running sum property sometimesworks, or just do it with VBA code.

Let me know if you need the VBA code for doing the totals, if I'm on the right track of answering the first part of your question.

This discussion is closed to new replies.