Dec 22, 2005 #1 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
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
Dec 22, 2005 #2 Remou Technical User Sep 30, 2002 13,030 BE Perhaps: [tt]DoCmd.OutputTo acOutputReport, "rptReport", acFormatRTF, "C:\Dir\" & Me.ClientID & ".rtf"[/tt] Upvote 0 Downvote
Perhaps: [tt]DoCmd.OutputTo acOutputReport, "rptReport", acFormatRTF, "C:\Dir\" & Me.ClientID & ".rtf"[/tt]
Dec 22, 2005 Thread starter #3 ebizleads Technical User Sep 14, 2005 57 US hmmm...says I entered an expression that has no value.??? Upvote 0 Downvote
Dec 22, 2005 #4 Remou Technical User Sep 30, 2002 13,030 BE What exactly did you use? Have you checked ClientID? Upvote 0 Downvote
Dec 22, 2005 Thread starter #5 ebizleads Technical User Sep 14, 2005 57 US 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. Upvote 0 Downvote
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.
Dec 22, 2005 #6 Remou Technical User Sep 30, 2002 13,030 BE Please post your code, otherwise I have to guess. Upvote 0 Downvote