473,387 Members | 1,536 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

vba code the generate reports with dynamic columns

Hi gurus! I have vba codes generating some temp tables for my project. The table structure has column headers as Months and the tasks under a particular month underneath.

Since number of columns of these temp tables vary from project to project, is there anyway to generate the access report automatically in columns as well?

I have referenced the following link but don't know how I can create dynamic report using VBA.
http://bytes.com/topic/access/insigh...port-using-vba

My preferred layout will look like:
Expand|Select|Wrap|Line Numbers
  1. Month01 Month02 Month03 MonthN
  2. AAAAAA  BBBBBB  CCCCCC  DDDDD
  3. EEEEEE  FFFFFF
  4. GGGGGG
  5.  
Jul 23 '14 #1
2 1185
twinnyfo
3,653 Expert Mod 2GB
Is there ever a "maximum" number of months to display? IF there is, then you can design a report around the maximum number of months that would be generated, then in your queryadd statements to display the field as "" if there are no real values.

This is one possibility, but not sure it is necessarily the best, but the best I can come up with after only one cup of coffee....
Jul 23 '14 #2
Well, the month columns won't be more than 20 I suppose. In addition, there is no empty month columns as I did in my query.
Jul 24 '14 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: tafpin | last post by:
I have an application with a datagrid. In the IDE I have 2 template columns. The first has an image button and the second contains a link button. According to the results that I get back I must...
1
by: corlo | last post by:
I'm working on an aplication with PHP and MySQL, but I need to generate reports from a database to be printed on a specific format. I need to generate graphics from the database and print them. Its...
1
by: mazharali | last post by:
tell the way how to generate reports through dataset in vb.net
1
by: aCe | last post by:
Hi all again, I need an output like : |----|----|----|---|------| |row1|row2|row3|...|row(n)| |----|----|----|---|------| is possible to create output like that, without querying manually...
0
by: arunpandey | last post by:
Friends I am creating columns and edit button in ASP.NET DataGrid at Run Time but when I click on the Edit Button disappears all columns and edit button itself. Only one column remains stay back,...
3
by: arunpandey | last post by:
Friends I am creating columns and edit button in ASP.NET DataGrid at Run Time but when I click on the Edit Button disappears all columns and edit button itself. Only one column remains stay back,...
7
by: =?Utf-8?B?S3VtYXIuQS5QLlA=?= | last post by:
Any pointers on how to generate reports in PDF using ASP.Net 2.0 -- Kumar.A.P.P Software Engineer, Infosys Technologies Limited. http://techaid.wordpress.com/
2
by: mhuff | last post by:
Hello, I have a table called ticket that has tickets stored in it. I have a seperate table called line items with the line items in it that are tied back to the ticket via a foreignkey. ...
3
by: =?Utf-8?B?RnJhbmsgVXJheQ==?= | last post by:
Hi all I think this question was discused quite often before. But maybe some "good-brain" has a great idea ... :-))) I have a DataSet with "unknown" columns. The CLR Function should work...
0
by: Jackvstu08 | last post by:
Hi All can you please tell me how to generate reports in Visual Basic, the report should include IA Validation, Action Items, User reports. Also can you tell me how to activate the scroll all users....
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.