Dave Crozier wrote: > John, > Yes, you can do it in one report with a little messing about and some "print > when..." conditions etc, but you KNOW what will happen. The user will change > ONE of the reports by adding something else in and all the initial hard work > will be in vain and you'll have to split into two separate reports anyway. > > Bite the bullet now and split it - you know it makes sense. <BG> > > Along with Dave's idea--if you split them--have some sort of metadata table where you read the report file name into a variable or object property and thus you'll only need to do this:
report form (oRpts.cMyReport) to printer noconsole That way, oRpts.cMyReport can be ABC.frx, or it could be XYZ.frx and your code won't have to change since you're referring to the object property. -- Michael J. Babcock, MCP MB Software Solutions, LLC http://mbsoftwaresolutions.com http://fabmate.com "Work smarter, not harder, with MBSS custom software solutions!" _______________________________________________ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.