Solved

Access 2007 Dynamically create a report from a dynamic table using VBA

Posted on 2014-10-21
4
975 Views
Last Modified: 2014-10-21
Hi Experts!!! I need help in creating a report/subreport from a table which will have dynamically built/variable columns. I have attached a screen shot of the actual table.

Any help will be appreciated.

PLEASE! :)
Untitled.jpg
0
Comment
Question by:Ei0914
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 36

Expert Comment

by:PatHartman
ID: 40395318
The biggest problem with doing this is that you don't have design access to objects when running under the control of the runtime engine or if you distribute the database as .mde/.accde/.accdr

I'm hoping this isn't really a dynamic table but is rather a crosstab report that changes header labels as columns change.  You can find an example in this KB article.
http://support.microsoft.com/kb/328320
0
 

Author Comment

by:Ei0914
ID: 40395343
Hi Pat!!! I can make it a Crosstab query/report. Just not sure how to go about it :)
0
 
LVL 36

Accepted Solution

by:
PatHartman earned 500 total points
ID: 40395410
You don't have to change it although temp tables cause bloat and so they are not good practice.  You can use the KB article regardless of whether the source is a table or a cross-tab query.
0
 

Author Closing Comment

by:Ei0914
ID: 40395799
Thanks Pat!
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question