Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access VBA
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 25th, 2004, 12:48 PM
Authorized User
 
Join Date: Jan 2004
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default Getting the data in columns - like Pivot Table

I'm working on a timetable. Naturally the database table contains the date code, subject code, lecturer code, etc. How can I get this tree looking timetable into a columnar table with the days spreading to the right. I can get the Pivot Table view but it's not as flexible as Excel.

Thanks for the prospective thoughts!
 
Old February 26th, 2004, 07:11 PM
sal sal is offline
Friend of Wrox
 
Join Date: Oct 2003
Posts: 702
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Maybe a crosstab query broken up by day would work.



Sal
 
Old February 29th, 2004, 03:28 AM
Authorized User
 
Join Date: Jan 2004
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Sal,

Thanks for the idea, I didn't use the crosstab query before. Tried it only to find that it gives me the 'sum' or 'count' etc. of the subjects. It won't give me the name of the subject, though a data access page could do that.

Another thing: If there is a way of getting the subject names shown, could I have it transferred onto a report (without much coding)

Thanks...
 
Old February 29th, 2004, 11:00 AM
sal sal is offline
Friend of Wrox
 
Join Date: Oct 2003
Posts: 702
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Are you referring to the column names?




Sal
 
Old February 29th, 2004, 02:31 PM
Authorized User
 
Join Date: Jan 2004
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes.

And, by the way, one correction. I think I've been using the term 'column' in the wrong way. Should have said "tabular" I believe.. Sorry. I have tried to create a report using a wizard and it worked fine. But the days, or the classes will change, and the design of the report will need to be changed as well...

Thanks

Murat





Similar Threads
Thread Thread Starter Forum Replies Last Post
Pivot Table Dynamic Reference Data oyelesit Excel VBA 2 August 4th, 2006 07:28 AM
How to set indexes on columns in a data table hdewees VB Databases Basics 1 June 5th, 2006 02:42 PM
How to replace pivot table data fields using VBA? rstober Excel VBA 2 August 19th, 2005 06:06 AM
Pivot Table mikeparams SQL Server 2000 1 February 9th, 2005 10:10 AM
ASP/SQL data in HTML table columns spinout Classic ASP Basics 2 January 9th, 2005 07:02 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.