Through a long process of SQL statements invlovling several tables over a couple databases, we have created an Access table that already groups the data and computes statistics the way we want it. In Access, we can create multiple groups to create and run the report. Now working with the VB6 dataenvironment, I see that I can only create one group to 'drag and drop' fields. If I had known of and understood command hierachies, we might have saved on the SQL to get to this one table. But that's for another day since a 'draft' is due next week.
My question is, can we use our already-developed single table to dynamically populate a data report (without the data environment) in which I have added two groupings? Or will VB balk again and tell me that "report sections do not match data source"?
The reports will have the following layout (hope it makes some sense)
Report header: (nothing in it)
Page header: a title
Group header 1: first grouping, only a name in here (e.g., pollutant)
Group header 2: second grouping, with name and statistics we already computed (e.g., source categories)
Detail: user-defined "Top N" details (e.g., top 10 counties out of all counties in a state: note the statistics are based on all detail rows before we reduce it to our top N choices)
Can I tell VB where to put page breaks?
Thanks,
Jim
My question is, can we use our already-developed single table to dynamically populate a data report (without the data environment) in which I have added two groupings? Or will VB balk again and tell me that "report sections do not match data source"?
The reports will have the following layout (hope it makes some sense)
Report header: (nothing in it)
Page header: a title
Group header 1: first grouping, only a name in here (e.g., pollutant)
Group header 2: second grouping, with name and statistics we already computed (e.g., source categories)
Detail: user-defined "Top N" details (e.g., top 10 counties out of all counties in a state: note the statistics are based on all detail rows before we reduce it to our top N choices)
Can I tell VB where to put page breaks?
Thanks,
Jim