I am trying to publish a report to our server using the following code. I have an input form which sets the date of the report Me![SetDate]- this all works fine however when the OutputTo ac-report line runs, it requests a date parameter from the query on which the report is based - ptc Date, I want this date to be the date Me![SetDate] however the outputTo criteria does not seem to have a filter function? like OpenReport (e.g DoCmd.OpenReport stdocname, acViewPreview, , stlinkcriteria)
Any ideas
Thanks
Dim outputSNP As String
Dim dataDate As String
dataDate = "ptc Date=" & Me![SetDate]
outputSNP = "j:\umps\this week\" & "Clock Hours for-" & Me![SetDate]
& ".snp"
DoCmd.OutputTo acReport, "DailyClockReport_All Employees", acFormatSNP,
outputSNP, False
Any ideas
Thanks
Dim outputSNP As String
Dim dataDate As String
dataDate = "ptc Date=" & Me![SetDate]
outputSNP = "j:\umps\this week\" & "Clock Hours for-" & Me![SetDate]
& ".snp"
DoCmd.OutputTo acReport, "DailyClockReport_All Employees", acFormatSNP,
outputSNP, False