Printing Report between two dates (1 Viewer)

mykil

My Life is Boring
Local time
Today, 16:22
Joined
Aug 16, 2011
Messages
117
Hello everyone!!!

Do you have any code for viewing Report between two dates. So when you open the report it will ask for the starting date and ending date. Any help will be much appreciated!!! Thank you in advance!!!
 

mykil

My Life is Boring
Local time
Today, 16:22
Joined
Aug 16, 2011
Messages
117
Thanks a lot!!! You're link really helps!!!
 

JHB

Have been here a while
Local time
Today, 10:22
Joined
Jun 17, 2012
Messages
7,732
You're welcome. :)
 

sumox

Registered User.
Local time
Today, 13:52
Joined
Oct 1, 2013
Messages
89
ya create a query
then feed in date field :
between Forms!SearchFrm!fromdate and Forms!SearchFrm!todate
then
Create a Form
Insert two textboxes one by one
Right-click those and goto Properties---> Other tab :
change name to "fromdate" (without quotes)
now do this for next textbox
rename it as "todate" (without quotes)

and then insert a command button specify--> Preview report--->Select your report
and then. Click finish

Now Save this form as "SearchFrm" or if previously named then Rename
it just like in windows we rename files.

now whenever you open form
fill fromdate and todate fields with range of dates
and then click Commandbutton. then a Report will Occure inPreview Mode
filtered by Query made by you.
(NotE:- your report shud be created by wizard, if you're novice/newly unknown to Access !)

thanks for reading
 

Users who are viewing this thread

Top Bottom