Wrox Programmer Forums
|
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 March 30th, 2005, 05:49 PM
Authorized User
 
Join Date: Apr 2004
Posts: 45
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to lguzman
Default Sub-Report

Good day.

I have created a report which lists recipes. A sub-report lists the ingredients. Is there anyway I can make the ingredients display/print, horizontally instead of vertically.

Meaning:
Eggs, Milk, Flour, etc.

Instead of:
Eggs
Milk
Flour
etc


Thanks.


LG

[LGuzman]
__________________
[LGuzman]
 
Old March 30th, 2005, 07:07 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

I don’t think you are going to be able to do this in a straight-forward fashion; you are going to have to get control of the machine to do this.

The sub report has a field linking it to the record of the report in which it finds itself, so that the subreport is showing data that is actually related to its parent.

I think you are going to have to get ahold of that ID, open the recordset, read it (putting the results into a string, concatenated with commas), and paste that string into the report yourself.

This would probably be best done without a sub report, but just filling in a label or textbox that is on the top-level report.

I think If I were going to do this, I wouldn’t even use an Access report though.
I would integrate with Word through ActiveX Automation, opening an object that was an instance of Word, using that to create and fill in a document.
That would give full access to conditional formatting, fonts, indentation, and so on, as well as Word’s printing routines.

Probably not what you want to undertake, but that is what I would do...





Similar Threads
Thread Thread Starter Forum Replies Last Post
simple report and crystal report in vb.net saket123 .NET Framework 2.0 0 August 13th, 2008 06:55 AM
reset links main-report to sub-report from c#.net epanyun Crystal Reports 0 April 18th, 2008 02:41 AM
how can i add report to report viewer in asp.net wael_e BOOK: Professional SQL Server 2005 Reporting Services ISBN: 0-7645-8497-9 0 February 19th, 2008 03:19 PM
Login fail Err when view report on Report Server dillig BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 1 July 22nd, 2004 05:31 AM
How to load a Web Server report into a Report Doc dshadle Crystal Reports 3 September 30th, 2003 03:47 PM





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