S
Scot Dever
I am trying to create a simple user defined report form for a range of
records between a chosen start and end date but keep getting this compile and
syntax error instead of the report, am I missing something?
Private Sub Command4_Click()
Dim ReportName
ReportName = "Stores Start Order" _
DoCmd.OpenReport _
ReportName:=ReportName, _
view:=acViewPreview, _
WhereCondition:="[StartConstCur]between #"& _
Me.StartDate& "# and #" & _
Me.EndDAte & "#"
End Sub
records between a chosen start and end date but keep getting this compile and
syntax error instead of the report, am I missing something?
Private Sub Command4_Click()
Dim ReportName
ReportName = "Stores Start Order" _
DoCmd.OpenReport _
ReportName:=ReportName, _
view:=acViewPreview, _
WhereCondition:="[StartConstCur]between #"& _
Me.StartDate& "# and #" & _
Me.EndDAte & "#"
End Sub