Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Database Design / July 2005

Tip: Looking for answers? Try searching our database.

Applying a filter to the RecordSource of a Form

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
davecoats622 - 21 Jul 2005 17:59 GMT
I have a form called (frmComments) whose recordsource is a table called
(tblComments).  The tblComments table contains comments for multiple students
for mulitple examinations.  When viewing the Form (frmComments), I need to
"filter" the recordsource so that I only see comments for the current
student.  Can I utilize the "Filter" property in the Properties Sheet to
allow only comments pertaining to the current student to be seen?  If so, I
have not been able to get the filter to work......it still shows all the
records for all the students.  On the Property Sheet under Filter, I entered
"Me.StudentID = 8" which should return only records for student #8.  Do you
know the correct format that should be used to enter this filter?
Rick Brandt - 21 Jul 2005 18:51 GMT
> I have a form called (frmComments) whose recordsource is a table
> called (tblComments).  The tblComments table contains comments for
[quoted text clipped - 8 lines]
> Do you know the correct format that should be used to enter this
> filter?

Me.Filter = "StudentID = 8"
Me.FilterOn = True

Signature

I don't check the Email account attached
to this message.     Send instead to...
RBrandt    at       Hunter      dot      com

davecoats622 - 21 Jul 2005 19:26 GMT
Thank you very much.  That worked!

> > I have a form called (frmComments) whose recordsource is a table
> > called (tblComments).  The tblComments table contains comments for
[quoted text clipped - 11 lines]
> Me.Filter = "StudentID = 8"
> Me.FilterOn = True
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.