G
Guest
I'm trying to run the following code from an event procedure under the time
from the switchboard to auto print report. It's not picking up the values of
my start date field. Any suggestions or is this a better way to do this?
Dim stDocName As String
Dim stStartDate As String
Dim stDocDate As String
Dim stPrintDate As String
stDocName = "Page1"
stStartDate = "[start-date]"
stDocDate = (Now) - 1
stPrintDate = stStartDate = stDocDate
DoCmd.OpenReport stDocName, acNormal, , stPrintDate
from the switchboard to auto print report. It's not picking up the values of
my start date field. Any suggestions or is this a better way to do this?
Dim stDocName As String
Dim stStartDate As String
Dim stDocDate As String
Dim stPrintDate As String
stDocName = "Page1"
stStartDate = "[start-date]"
stDocDate = (Now) - 1
stPrintDate = stStartDate = stDocDate
DoCmd.OpenReport stDocName, acNormal, , stPrintDate