Solved

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

Posted on 2014-10-21
4
821 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
  • 2
  • 2
4 Comments
 
LVL 34

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 34

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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
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…

759 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now