troubleshooting Question

Create an access report between two dates from a form

Avatar of deanparkr
deanparkr asked on
Microsoft Access
9 Comments3 Solutions563 ViewsLast Modified:
Hi,

Ive got a working query which takes data from a table and only displays the data between two dates.  This all works fine..  

I then created a form with a "From date" and a "To date" with a button which when pressed could generate a printable report.

I thought if I created a Macro to run the Query and then run the Report straight after it might display the correct data... but alas.. that dream didnt work out!  The report shows ALL the data in the database and not the data between two dates.

I am guessing there needs to be some VBA code which carries across the from and to dates from the form.. into the report?

Is this something thats easy to do?

Many Thanks!
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 3 Answers and 9 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 3 Answers and 9 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros