2
2vao
Hi,
I want to open a report using a form but I need to write the above criteria
in VBA. This is what I tried
strDoc = " next3days "
strLink1= " [SDate]>=" & Me.SDate1 ' SDate1=Date-1
strLink2= " [SDate]<=" & Me.SDate2 ' SDate2 = Date+3
DoCmd.openReport strDoc, acViewPreview, ,strLink1 & " AND " & strLink2
Please excuse my crazy attempt.
Many thanks.
I want to open a report using a form but I need to write the above criteria
in VBA. This is what I tried
strDoc = " next3days "
strLink1= " [SDate]>=" & Me.SDate1 ' SDate1=Date-1
strLink2= " [SDate]<=" & Me.SDate2 ' SDate2 = Date+3
DoCmd.openReport strDoc, acViewPreview, ,strLink1 & " AND " & strLink2
Please excuse my crazy attempt.
Many thanks.