Hi, I am self taught on Access and VBA so there are still big holes in my basic knowledge.
I have a form with a date field [invoicedate] and a button to open a report with just the page(s) relating to that date. I have tried several options and they all open the entire report. my latest code (kindly suggested by another forum) is:
stDocName = "daily sales report"
DoCmd.OpenReport stDocName, acPreview, "[reportdate]='" & Me![INVOICE DATE] & "'", , acWindowNormal
but this still opens the entire report.
I have also tried the long coding suggested in several threads by Allen Browne but I think this is more for filtering between two dates rather than a single date.
Any help would be gratefully appreciated?
Sally
I have a form with a date field [invoicedate] and a button to open a report with just the page(s) relating to that date. I have tried several options and they all open the entire report. my latest code (kindly suggested by another forum) is:
stDocName = "daily sales report"
DoCmd.OpenReport stDocName, acPreview, "[reportdate]='" & Me![INVOICE DATE] & "'", , acWindowNormal
but this still opens the entire report.
I have also tried the long coding suggested in several threads by Allen Browne but I think this is more for filtering between two dates rather than a single date.
Any help would be gratefully appreciated?
Sally