PC Review


Reply
Thread Tools Rate Thread

Drawing a grid on a Report

 
 
Sarah
Guest
Posts: n/a
 
      20th Mar 2010
greetings

I have a report based on a Crosstab query. Both the Query and the Report
work just fine. They have 2 row headers on the left side of the table and a
variable number of PivotField headers.

I've been asked to have the Report's table in a grid when printed. Normally
I would just use line segments to draw this grid. BUT, the number of
PivotFields varies from Report to Report, so I'm having difficulty getting
the grid to work. My supervisor wants the grid to end with the LAST COLUMN.
I'd like to know:

a) What is the best way to compute how many Pivotfields a Query will have?

b) How should I approach the drawing of the grid?

thank you in advance for any tips. I'm not experienced enough at coding to
know how to handle this properly.
Sarah

 
Reply With Quote
 
 
 
 
Duane Hookom
Guest
Posts: n/a
 
      20th Mar 2010
First, how are you creating your report if your number of columns will vary?
Have you thought about just using the border of the text boxes to create the
grid?
It might help if you provided the SQL view of the crosstab.
--
Duane Hookom
MS Access MVP


"Sarah" <(E-Mail Removed)> wrote in message
news:0B6AFF7D-1B10-42F6-8948-(E-Mail Removed)...
> greetings
>
> I have a report based on a Crosstab query. Both the Query and the Report
> work just fine. They have 2 row headers on the left side of the table and
> a
> variable number of PivotField headers.
>
> I've been asked to have the Report's table in a grid when printed.
> Normally
> I would just use line segments to draw this grid. BUT, the number of
> PivotFields varies from Report to Report, so I'm having difficulty getting
> the grid to work. My supervisor wants the grid to end with the LAST
> COLUMN.
> I'd like to know:
>
> a) What is the best way to compute how many Pivotfields a Query will have?
>
> b) How should I approach the drawing of the grid?
>
> thank you in advance for any tips. I'm not experienced enough at coding
> to
> know how to handle this properly.
> Sarah
>

 
Reply With Quote
 
Sarah
Guest
Posts: n/a
 
      20th Mar 2010
hi Duane
The number of columns varies because the table is based on a Crosstab query,
so the number of PivotFields can be more or less. In any case, I've found
that the max number of Pivotfields is 16, so I've decided to make the grid
that size and leave 'squares; blank if not needed. Thank you for your
assistance. -Sarah

"Duane Hookom" wrote:

> First, how are you creating your report if your number of columns will vary?
> Have you thought about just using the border of the text boxes to create the
> grid?
> It might help if you provided the SQL view of the crosstab.
> --
> Duane Hookom
> MS Access MVP
>
>
> "Sarah" <(E-Mail Removed)> wrote in message
> news:0B6AFF7D-1B10-42F6-8948-(E-Mail Removed)...
> > greetings
> >
> > I have a report based on a Crosstab query. Both the Query and the Report
> > work just fine. They have 2 row headers on the left side of the table and
> > a
> > variable number of PivotField headers.
> >
> > I've been asked to have the Report's table in a grid when printed.
> > Normally
> > I would just use line segments to draw this grid. BUT, the number of
> > PivotFields varies from Report to Report, so I'm having difficulty getting
> > the grid to work. My supervisor wants the grid to end with the LAST
> > COLUMN.
> > I'd like to know:
> >
> > a) What is the best way to compute how many Pivotfields a Query will have?
> >
> > b) How should I approach the drawing of the grid?
> >
> > thank you in advance for any tips. I'm not experienced enough at coding
> > to
> > know how to handle this properly.
> > Sarah
> >

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Grid on the Drawing Canvas? wolf_tracks@invalid.com Microsoft Word New Users 3 29th Apr 2009 08:59 PM
drawing an onscreen grid Peted Microsoft VC .NET 1 6th Feb 2008 05:33 PM
Drawing a grid on the form Wade Microsoft Dot NET Framework Forms 4 15th Mar 2006 11:21 PM
drawing a table or grid-like structure on a report max Microsoft Access Reports 2 28th Jan 2004 03:50 AM
Programmatically drawing a Data Grid David Webb Microsoft Dot NET Compact Framework 2 12th Aug 2003 11:26 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:15 PM.