P
Peter Woodhead
Can anyone tell me why the following won't work when I use
a form to enter the dates - if I substitute the variables
dteStartDate and dteEdate with actual dates the report
opnes filtered to the dates
Dim strWhere As String
Dim dteStartDate As Date
Dim dteEDate As Date
dteStartDate = Me.txtBeginDate
dteEDate = Me.txtEndDate
strWhere = "qryMaterialsDue.OrdTDate BETWEEN
#dteStartDate# And #dteEDate#"
DoCmd.OpenReport "rptMaterialsDue", acViewPreview, ,
strWhere
any ideas?
a form to enter the dates - if I substitute the variables
dteStartDate and dteEdate with actual dates the report
opnes filtered to the dates
Dim strWhere As String
Dim dteStartDate As Date
Dim dteEDate As Date
dteStartDate = Me.txtBeginDate
dteEDate = Me.txtEndDate
strWhere = "qryMaterialsDue.OrdTDate BETWEEN
#dteStartDate# And #dteEDate#"
DoCmd.OpenReport "rptMaterialsDue", acViewPreview, ,
strWhere
any ideas?