There is no requirement for an opening paren in the code I posted. I noticed
you had a closing paren in the original post with no opening paren. I would
have to see the entire statement to know where it should be.

Signature
Dave Hargis, Microsoft Access MVP
The converted Macro to Module code (Now) is as follows:
'------------------------------------------------------------
' Output
'
'------------------------------------------------------------
Function Output()
On Error GoTo Output_Err
' strFileName = "C:\test\" & Forms![ControlMinimum]![MinOfAccNo] & "_" &
Forms![ControlMimimum]![invoiceNumber]
DoCmd.OutputTo acReport, "V2MasterBillReport", "HTML(*.html)",
"strFileName = ""C:\test\"" & Forms![ControlMinimum]![MinOfAccNo] & ""_"" &
Forms![ControlMimimum]![invoiceNumber]", False, ""
Output_Exit:
Exit Function
Output_Err:
MsgBox Error$
Resume Output_Exit
End Function
Thanks Colin
> There is no requirement for an opening paren in the code I posted. I noticed
> you had a closing paren in the original post with no opening paren. I would
[quoted text clipped - 40 lines]
> > > >
> > > > Colin
Klatuu - 31 Jan 2007 14:34 GMT
Since I don't use macros, I don't know why it is putting out code like that.
It does not appear to be syntactically correct. What error are you getting?

Signature
Dave Hargis, Microsoft Access MVP
> The converted Macro to Module code (Now) is as follows:
>
[quoted text clipped - 66 lines]
> > > > >
> > > > > Colin
colin - 31 Jan 2007 17:42 GMT
Hi Dave,
I have found that html does not retaine the report format and so have
decided to use snapshot (until I get Office 2007 which I believe supports PDF)
would you have any example code that will say output report "A" to location
C:\test\Filename(formcontrol "a") & space (formcontrol "b")
I dont know if this is possible as there is an issue with msaccess 2000 in
using wildcards see article
http://support.microsoft.com/default.aspx?scid=kb;en-us;226526
Many thanks for your time and assistance
kind regards
Colin
> Since I don't use macros, I don't know why it is putting out code like that.
> It does not appear to be syntactically correct. What error are you getting?
[quoted text clipped - 69 lines]
> > > > > >
> > > > > > Colin
Klatuu - 31 Jan 2007 17:55 GMT
Try it like this in VBA:
DoCmd.OutputTo acReport, "V2MasterBillReport", acFormatHTML, "C:\test\'"
& Forms![ControlMinimum]![MinOfAccNo] & "'_'" &
Forms![ControlMimimum]![invoiceNumber]", False

Signature
Dave Hargis, Microsoft Access MVP
> Hi Dave,
>
[quoted text clipped - 87 lines]
> > > > > > >
> > > > > > > Colin