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

Show a Control with array data on a Report after query is complete

Hi, everyone.

My problem is a bit too complex to explain in writing, let alone in the title of my post, but I'll give it a shot.

I have a report that has a basic set of columns and rows, but complex calculations are run between cells of each row, and between cells of different rows. Based on these calculations some rows are hidden and some are not.

Now, I need to temporarily store paired data ("date" and "amount") from some of the rows until the query that feeds the report is done, then run some calculations on the stored data, then show that data in a control that appears on the report after all of the rows are displayed AND the control can't impact the placement of the rows (meaning the control has to "overlap" any existing rows and not push them out of the way).

Thoughts? ;) I had thought of a sub-report, but I still need to grab and process the data from the main report on a row-by-row basis.
Mar 20 '08 #1
4 2107
Ok, I've stored the data in a temporary table, but now I need to display the data in the "acDetail" section WITHOUT it repeating X times for each row of data. Anyone?
Mar 20 '08 #2
Stewart Ross
2,545 Expert Mod 2GB
Ok, I've stored the data in a temporary table, but now I need to display the data in the "acDetail" section WITHOUT it repeating X times for each row of data. Anyone?
If I understand correctly, your temporary table has repeating data rows and you need to display them on your report without the repetitions. One simple approach I can think of is to group the rows on whatever criteria suits the data (and I can't say what because you have not shown us a sample of your data), add a group footer to the innermost group of the criteria in your report, then put your report's textboxes etc not in the detail section of your report but in the group footer. The grouping will take care of duplicates automatically. You can close the width of the detail section down to nil as you won't have any controls in it at all.

I am assuming that your temporary table is intended to reduce the processing needed at the report stage, otherwise use of the group footer approach may not help you if you need to do further processing at row level in the report.

-Stewart
Mar 20 '08 #3
Stewart, thanks for the response.

I'm sorry, my description of the problem was a bit imprecise.

What I'm really trying to do is get the data in my temp table to appear in the acDetail section of my report WITHOUT pushing down the rows of data that are shown in acDetail. This needs to happen as the data in acDetail is grouped by a field, and the data in the temp table is related to each section of acDetail that's grouped. I believe I need to come up with an entirely new approach and use Headers and Footers as they're meant to be used.

Basically, I'm trying to create a left-to-right AND top-to-bottom report, where my temp table is on the left and my rows of data are on the right, and each of these groups of data are segregated.

Any thoughts on the proper structure? I know I'm close, but am unfamiliar with proper Group Headers and Footers to get the report just right.
Mar 21 '08 #4
Stewart Ross
2,545 Expert Mod 2GB
...
Basically, I'm trying to create a left-to-right AND top-to-bottom report, where my temp table is on the left and my rows of data are on the right, and each of these groups of data are segregated.

Any thoughts on the proper structure? I know I'm close, but am unfamiliar with proper Group Headers and Footers to get the report just right.
Hi talktozee2. If you could post some sample data it would really help with visualising how to do the transform (if it is possible). In particular, a short extract of the report's source data as provided in your intermediate table, and an extract of how you visualise it after processing would be really helpful. This is one of those occasions when we cannot go further without knowing some of the details of the fields and the row structure involved.

Happy to advise further in due course...

Cheers

Stewart
Mar 24 '08 #5

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

Similar topics

6
by: Mike Conklin | last post by:
This one really has me going. Probably something silly. I'm using dcount for a report to determine the number of different types of tests proctored in a semester. My report is based on a...
1
by: Georg Scholz | last post by:
Hello, The class "Control" contains a documented Property "ControlType". So for example, in a form, you can write code like this: Dim c as control set c = me.Controls("textbox1") if...
5
by: kotowskil | last post by:
A report has a subform. The subform is set to datasheet view and its RecordSource is a select query that includes a memo field from the source table. The memo field's Can Grow property is Yes,...
2
by: a_munch | last post by:
Hello, I was wondering if there's any way to create a report that will show only rows from a query that meet certain criteria? I can't create a second query that will pull only the records I need...
7
by: Anne M | last post by:
I have a report based on query..which is a team list with names and their role on team ie coach, assistant and player. Report is almost what I want and my knowledge is limited so I need some...
8
by: David Lozzi | last post by:
Howdy, I have a user control that is a report to display data. On the page the control is inserted in, I have filter options to filter the report. When I try to do something like this, nothing...
2
by: DartmanX | last post by:
I have a form that does the following: - User inputs a serial number - VBA code does a lookup (SQL Query) and populates a listbox with results (4 columns in the Listbox) - Start Over (Listbox...
3
by: gihope | last post by:
Can anyone tell me why I am not allowed to bind a two or multi dimensional array to GridView and possibly suggest how they would deal with similar scenarios? The array is simply a two dimensional...
2
by: NicholasSerpentine | last post by:
Hi folks....I have been checking out this group and have found help and solutions to everything I have needed up to this point. I have created a report based on a Query to show me certain activity...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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:
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: 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...

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.