Report based on Crosstab Query

Kamlesh Jain
Kamlesh Jain used Ask the Experts™
on
I had this question after viewing Ms Access Crosstab Report with variable number of columns.

Dear Experts,
I am facing a similar situation but the problem is instead of numeric columns, i have Text Fields as columns. Any addition of column (Storage_Port) does not reflect in report. However, any change in Product / Qty gets updated.

Would be obliged if i can get help.
Db is attached herewith for reference purpose.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Dale FyeOwner, Dev-Soln LLC
Most Valuable Expert 2014
Top Expert 2010

Commented:
no db attached
Distinguished Expert 2017

Commented:
I have a database with a working example.  Look at "Expense Example" which runs the report and  "Report from variable crosstab" which builds the table that contains the ID's and headers used in the report.

As you will see by the example, it doesn't matter what data type you are pivoting.  The table that holds the headers holds the IDs that are used for joining and selecting records as well as the text that will go into the column captions.

The database is too big to upload.  If you would like me to send it, please send a PM with your email address.  Do not post it here.

I did not spend much time with the MS example.  In fact I stopped reading it when the author referred to unbound controls as unbounded.
Kamlesh JainManager

Author

Commented:
So sorry Mr Dale and Mr Part for forgetting to attach db.
Attaching herewith the db file.
Answer-Cross-tab.accdb
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Distinguished Expert 2017
Commented:
I sent a working sample.  See what you can glean from that.
Kamlesh JainManager

Author

Commented:
Sir,
Sample file sent by you was useful.
My report is now working and i am very thankful to you.
Best Regards,
Distinguished Expert 2017

Commented:
You're welcome.  Glad it helped you.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial