I don't normally use Access, and I am sure something like this has been coverd once before, so thanks ahead if anyone knows a thread I can go look in before wasting peoples time.
I am creating a query for a time keeping report. I'd like to prompt the user for a Time Period End Date that will be used to query the database for employees that have worked between that date, and the two weeks prior. Here is what I have now:
This, of course, prompts the user twice, but produces the right results. I wanted to do something smarter, like:
I don't know Access enough to know how to prompt the user for the date, then calculate the start date from that, and then use the original date as the cut-off for the between statement. Suggestions?
.:TUCK:.
I am creating a query for a time keeping report. I'd like to prompt the user for a Time Period End Date that will be used to query the database for employees that have worked between that date, and the two weeks prior. Here is what I have now:
Code:
Between [Enter Pay Period Start Date] And [Enter Pay Period End Date]
Code:
Between [Enter Pay Period Ending Date] And DateAdd("d",-13,[Enter Pay Period Ending Date])
.:TUCK:.