PC Review


Reply
Thread Tools Rate Thread

Help!!!!!! Filtered form and report

 
 
Chris
Guest
Posts: n/a
 
      17th Feb 2004


I have to extract from a table the operations made between 2 days. I made a
query where i put as a criteria for the field DATE : Between [Date1] and
[Date2], and appear 2 boxes for introducing Date1 and Date2.
Now, I have to display the rezults in a form and in a report. I made the
form, and when executing it appear the 2 boxes, I enter the dates and I get
the results displayed in the form. In that form I used a command button to
open the report, but appear again the 2 interogative boxes. HOW CAN I GET
> THE RESULTS IN THE REPORT USING THAT BUTTON FROM THE FORM WITHOUT
> INTRODUCING AGAIN Date1 and Date2 ???
> IS THERE A POSIBILITY TO INTRODUCE Date1 and Date2. IN 2 TEXTBOXES IN A

FORM
> (ONLY ONCE FOR THE FORM AND FOR THE REPORT) AND TAKE THEM FROM THERE FOR
> DISPLAING THE RESULTS IN A FORM AS WELL IN A REPORT?
>
> HELP ME PLEASE!
> THANK YOU!
>
>
>



 
Reply With Quote
 
 
 
 
Paul Falla
Guest
Posts: n/a
 
      17th Feb 2004
Dear Chris

A simple way is to create a new form not based on any
tables or queries (unbound). On this form put two text
boxes one for Date1 and one for Date2. Also put on the
form two buttons - one for OK and one for CANCEL. The
onclick event of the OK button will open the form that is
based on your query.

Now open your query in design view and in the date field
criteria put BETWEEN FORMS![NEWDATEFORM][!DATE1] AND FORMS!
[NEWDATEFORM]![DATE2]
This way, as long as the NEWDATEFORM form is open your
form and report will only ask for the parameters once.

Hope this helps

Paul Falla
>-----Original Message-----
>
>
>I have to extract from a table the operations made

between 2 days. I made a
> query where i put as a criteria for the field DATE :

Between [Date1] and
> [Date2], and appear 2 boxes for introducing Date1 and

Date2.
> Now, I have to display the rezults in a form and in a

report. I made the
> form, and when executing it appear the 2 boxes, I enter

the dates and I get
>the results displayed in the form. In that form I used a

command button to
> open the report, but appear again the 2 interogative

boxes. HOW CAN I GET
>> THE RESULTS IN THE REPORT USING THAT BUTTON FROM THE

FORM WITHOUT
>> INTRODUCING AGAIN Date1 and Date2 ???
>> IS THERE A POSIBILITY TO INTRODUCE Date1 and Date2. IN

2 TEXTBOXES IN A
>FORM
>> (ONLY ONCE FOR THE FORM AND FOR THE REPORT) AND TAKE

THEM FROM THERE FOR
>> DISPLAING THE RESULTS IN A FORM AS WELL IN A REPORT?
>>
>> HELP ME PLEASE!
>> THANK YOU!
>>
>>
>>

>
>
>.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Total filtered record count on filtered adp form Jess Microsoft Access Form Coding 1 19th Apr 2010 02:43 AM
changing a filtered report to a filtered form Sarah Microsoft Access Forms 3 5th Aug 2009 02:30 PM
Return filtered values into report worksheet based on filtered valueon the data worksheet dicko1 Microsoft Excel Worksheet Functions 1 21st Apr 2009 12:27 AM
traversing through a filtered range based on another filtered range zestpt Microsoft Excel Programming 4 12th Jul 2004 06:37 PM
Output an access report to excel files with filtered a filtered date range. Frank Microsoft Access Form Coding 2 30th Jul 2003 01:03 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:59 PM.