Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Saving Report to Path

Status
Not open for further replies.

ebizleads

Technical User
Sep 14, 2005
57
US
I need to save a report to a specified path via VB code. The path needs to include a field name.

Save to: c:\dir\[clientid].rtf

Any idea how to do this?

Ebizleads
 
Perhaps:
[tt]DoCmd.OutputTo acOutputReport, "rptReport", acFormatRTF, "C:\Dir\" & Me.ClientID & ".rtf"[/tt]
 
hmmm...says I entered an expression that has no value.???
 
What exactly did you use? Have you checked ClientID? [ponder]
 
Maybe this helps. The report is based on a query that prints based on the record in a form. In the ClientID field of the query I have:

[Forms]![Main Lead Console].[ClientID]

I place this code in the report On Open event and got the error stated.

 
Please post your code, otherwise I have to guess.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top