PC Review


Reply
Thread Tools Rate Thread

How do I dynamically set the Outputfile in the OutputTo method?

 
 
=?Utf-8?B?TWlrZSBWYXJnYXM=?=
Guest
Posts: n/a
 
      17th Apr 2006
I want to save a report with a name that changes based on the school name. In
the OutputTo method, I have tried setting the Outputfile name
"[Forms]![Dialog - EMail AD Report]![Selection]" & " AD Report.rtf" in hopes
of getting "Arts AD Report" or "Academy AD Report" where Arts and Academy are
two different school names. I am running one report at a time. The report
contents get output OK, but the name is literally "[Forms]![Dialog - EMail AD
Report]![Selection].AD Report.rtf".

Is there a way I can have the file name changfed based on the school name
changing?
 
Reply With Quote
 
 
 
 
=?Utf-8?B?S2xhdHV1?=
Guest
Posts: n/a
 
      17th Apr 2006
Leave the form information outside the quotes:
[Forms]![Dialog - EMail AD Report]![Selection] & " AD Report.rtf"
"Mike Vargas" wrote:

> I want to save a report with a name that changes based on the school name. In
> the OutputTo method, I have tried setting the Outputfile name
> "[Forms]![Dialog - EMail AD Report]![Selection]" & " AD Report.rtf" in hopes
> of getting "Arts AD Report" or "Academy AD Report" where Arts and Academy are
> two different school names. I am running one report at a time. The report
> contents get output OK, but the name is literally "[Forms]![Dialog - EMail AD
> Report]![Selection].AD Report.rtf".
>
> Is there a way I can have the file name changfed based on the school name
> changing?

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
outPutTo method =?Utf-8?B?c3RlcGhlbnNvbjIy?= Microsoft Access Reports 6 16th Jul 2007 11:30 AM
outputTo method =?Utf-8?B?c3RlcGhlbnNvbjIy?= Microsoft Access VBA Modules 4 18th Jun 2007 03:56 PM
How to use OutputTo method Peter Afonin Microsoft Access ADP SQL Server 3 12th Aug 2004 10:05 PM
OutputTo Method Ayala Microsoft Access Reports 1 5th Jan 2004 08:45 PM
OutputTo method hangs John Kutsor Microsoft Access VBA Modules 0 9th Jul 2003 03:49 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:51 PM.