WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

Crosstab queries and reports

 
   Home -> Office other -> Reports RSS
Next:  Reports: displaying records in a report  
Author Message
Chi

External


Since: Aug 31, 2004
Posts: 163



(Msg. 1) Posted: Thu Jul 24, 2008 11:52 am
Post subject: Crosstab queries and reports Add to elertz
Archived from groups: microsoft>public>access>reports (more info?)

Hi,

I have the crosstab working by putting parameters in the crosstab -
Beginning Date and Ending Date.

It works fine when I run the query. However, I have a problem in creating a
report based on my crosstab query. There are no fields for me to choose from
the wizard.

Please help

Thanks
Chi
Back to top
Login to vote
Allen Browne

External


Since: Nov 08, 2003
Posts: 9375



(Msg. 2) Posted: Fri Jul 25, 2008 3:00 am
Post subject: Re: Crosstab queries and reports Add to elertz [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Are the dates the column headings? If so, the actual field names generated
in the query will change depending on the parameters you enter. And since
the field names change, any report you design now won't have the right field
names for the future.

One way to solve this is to redesign the crosstab so it does produce
consistent column names. Duane Hookom shows how to do that in this example:
http://www.access.hookom.net/DynamicMthlyCrosstabRpt.htm

If you can't do that, other options include using the Column Headings
property of the query so all the field names are generated for the report
regardless of the parameters. Specifying the Column Headings will solve the
problem of making the field names available quickly in design view as well.
Details:
http://allenbrowne.com/ser-67.html#ColHead

But that may generate too many columns. You may therefore need to use VBA
code in the report's Open event to determine the field names, assign its
RecordSource, assign the ControlSource of the controls to the needed field
names, and set the captions over the columns. This will require an
understanding of VBA and SQL, so check out if Duane's solution is suitable
first.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Chi" <Chi DeleteThis @discussions.microsoft.com> wrote in message
news:69DC4CD5-0A6E-4B28-8751-A9ABF31DEB4E@microsoft.com...
>
> I have the crosstab working by putting parameters in the crosstab -
> Beginning Date and Ending Date.
>
> It works fine when I run the query. However, I have a problem in creating
> a report based on my crosstab query. There are no fields for me to
> choose from the wizard
Back to top
Login to vote
Display posts from previous:   
       Home -> Office other -> Reports All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows XP
 Windows Vista
 Windows Other
 Office
  Office Other
 Security
 WinRAR
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET