473,395 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Filtering a forms recordsource being used for a report

Hi all.
Im using a form's recordsource for a report. which works fine

Me.RecordSource =
Forms("frmdate01").Form.Controls("HoldLog").Form.C ontrols("frmHoldLog01").Form.RecordSource
Ive got a couple of buttons on the form which allows the user to filter from
a full recordset, on the form. I now wish to use a date filter when running
the report, so that the report takes the filtered recordset (me.recordset)
and applies the date filter. I don't mind if i have to put a form in the
middle to hold the dates, but i do need to apply the date filter only the
the form's current recordset.

Any ideas?

--

Nov 13 '05 #1
2 1872
Bump,
Any ideas?

Thanks in advance.
"Gerry Abbott" <pl****@ask.ie> wrote in message
news:oN**************@news.indigo.ie...
Hi all.
Im using a form's recordsource for a report. which works fine

Me.RecordSource =
Forms("frmdate01").Form.Controls("HoldLog").Form.C ontrols("frmHoldLog01").Form.RecordSource
Ive got a couple of buttons on the form which allows the user to filter
from a full recordset, on the form. I now wish to use a date filter when
running the report, so that the report takes the filtered recordset
(me.recordset) and applies the date filter. I don't mind if i have to put
a form in the middle to hold the dates, but i do need to apply the date
filter only the the form's current recordset.

Any ideas?

--

Nov 13 '05 #2
Well No reply from the group on this one....?

The solution i used was to apply all the filters from the form, and use it
to modify the SQL, which I used as the new recordsource. The report was then
run from the Form recordsource.
Gerry Abbott
"Gerry Abbott" <pl****@ask.ie> wrote in message
news:oN**************@news.indigo.ie...
Hi all.
Im using a form's recordsource for a report. which works fine

Me.RecordSource =
Forms("frmdate01").Form.Controls("HoldLog").Form.C ontrols("frmHoldLog01").Form.RecordSource
Ive got a couple of buttons on the form which allows the user to filter
from a full recordset, on the form. I now wish to use a date filter when
running the report, so that the report takes the filtered recordset
(me.recordset) and applies the date filter. I don't mind if i have to put
a form in the middle to hold the dates, but i do need to apply the date
filter only the the form's current recordset.

Any ideas?

--

Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Dalan | last post by:
Okay, I have worked on this and then some, but cannot seem to crack it. So if someone can straighten my code out, or suggest a new approach, then I'm all ears. Here goes: I have two tables - one...
2
by: DCD | last post by:
I was wondering if anyone knew how to create a report from information that you select on a form. I have a few of the fields on the form linked to a table, however some of the other ones are not...
1
by: Aravind | last post by:
Hi folks. My database project has the following: -------------------------------------------------------------------------------- tables: Member: MemName, MemNo , MemType, CourseFaculty...
1
by: Monir | last post by:
Hi guys, I made a database with two tables ( tblsender, tblreceiver) with one to many relationship. tblsender has sender_Id (pk) sender_name, address, phone, email etc. tblreceiver has...
19
by: James Fortune | last post by:
I have a lot of respect for David Fenton and Allen Browne, but I don't understand why people who know how to write code to completely replace a front end do not write something that will automate...
15
by: Richard Hollenbeck | last post by:
I tried to ask this question before on the 14th of January but I never got a reply. I'm still struggling with the problem. I'll try to rephrase the question: I have a crosstab query with rows...
1
by: mstery | last post by:
I have a report generated via an ID selection made in a dropdown on a form. The report filters by an on click event in a preview report button on the form. Everything in the report, including...
8
by: | last post by:
hi, i have a form on which a user can choose specific criteria such as dates etc, in order to filter the report that is called from the form. i do this by using the Where section of the...
3
by: Simon | last post by:
Dear reader, The syntax for the VBA code to change the RecordSource of a Master Report is: Me.RecordSource = "TableOrQueryName"
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.