PC Review


Reply
Thread Tools Rate Thread

How do I use the Form Properties to filter data?

 
 
Cummings
Guest
Posts: n/a
 
      9th Jan 2008
When checking the Properties of a form in Design View, I noticed a "Filter"
field.

I have been trying to get it to work for 3 days now.

I know it has to be a simple thing, but I'm at a loss. My attempts at SQL
expressions don't blow things up, but they don't work, either.

Basically, I have a field called "Spiral" with values "A", "B", "C", etc.
When I open the form, I just want to see the items associated with one (and
only one) of them.

I'd like for this to be invisible to the users.

Thanks.

--
JP Cummings
 
Reply With Quote
 
 
 
 
Roger Carlson
Guest
Posts: n/a
 
      9th Jan 2008
Actually, I rarely use the filter property of the form for this. I prefer
to base the form on a query that is filtered the way I want. This can
either be hard coded or done programmatically, depending on what you want to
accomplish.
--
--Roger Carlson
MS Access MVP
Access Database Samples: www.rogersaccesslibrary.com
Want answers to your Access questions in your Email?
Free subscription:
http://peach.ease.lsoft.com/scripts/...UBED1=ACCESS-L

"Cummings" <(E-Mail Removed)> wrote in message
news:8CCCC2EE-629B-482D-8998-(E-Mail Removed)...
> When checking the Properties of a form in Design View, I noticed a
> "Filter"
> field.
>
> I have been trying to get it to work for 3 days now.
>
> I know it has to be a simple thing, but I'm at a loss. My attempts at SQL
> expressions don't blow things up, but they don't work, either.
>
> Basically, I have a field called "Spiral" with values "A", "B", "C", etc.
> When I open the form, I just want to see the items associated with one
> (and
> only one) of them.
>
> I'd like for this to be invisible to the users.
>
> Thanks.
>
> --
> JP Cummings



 
Reply With Quote
 
fredg
Guest
Posts: n/a
 
      9th Jan 2008
On Wed, 9 Jan 2008 06:44:05 -0800, Cummings wrote:

> When checking the Properties of a form in Design View, I noticed a "Filter"
> field.
>
> I have been trying to get it to work for 3 days now.
>
> I know it has to be a simple thing, but I'm at a loss. My attempts at SQL
> expressions don't blow things up, but they don't work, either.
>
> Basically, I have a field called "Spiral" with values "A", "B", "C", etc.
> When I open the form, I just want to see the items associated with one (and
> only one) of them.
>
> I'd like for this to be invisible to the users.
>
> Thanks.


One way, if you wish to do this using the form's Filter property, is
to code the Form's Load event:

Me.Filter = "Spiral = 'A'"
Me.FilterOn = True

The form will open filtered.

You could then toggle the filter on or off by right-clicking on the
form and selecting Remove Filter/Sort or Apply filter/Sort.


--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
 
Reply With Quote
 
Cummings
Guest
Posts: n/a
 
      9th Jan 2008
Fred --

You're a genius.

Thanks.

Jim
----
JP Cummings


"fredg" wrote:

> On Wed, 9 Jan 2008 06:44:05 -0800, Cummings wrote:
>
> > When checking the Properties of a form in Design View, I noticed a "Filter"
> > field.
> >
> > I have been trying to get it to work for 3 days now.
> >
> > I know it has to be a simple thing, but I'm at a loss. My attempts at SQL
> > expressions don't blow things up, but they don't work, either.
> >
> > Basically, I have a field called "Spiral" with values "A", "B", "C", etc.
> > When I open the form, I just want to see the items associated with one (and
> > only one) of them.
> >
> > I'd like for this to be invisible to the users.
> >
> > Thanks.

>
> One way, if you wish to do this using the form's Filter property, is
> to code the Form's Load event:
>
> Me.Filter = "Spiral = 'A'"
> Me.FilterOn = True
>
> The form will open filtered.
>
> You could then toggle the filter on or off by right-clicking on the
> form and selecting Remove Filter/Sort or Apply filter/Sort.
>
>
> --
> Fred
> Please respond only to this newsgroup.
> I do not reply to personal e-mail
>

 
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
Can form and subform data properties be different? Chris v. Microsoft Access Forms 4 12th Mar 2009 02:39 AM
Filter data by using a form and open a report based on this data =?Utf-8?B?QWNjZXNzUHJvamVjdA==?= Microsoft Access Form Coding 1 27th Sep 2007 05:20 AM
filter form data =?Utf-8?B?VG9kZA==?= Microsoft Access Forms 5 9th Apr 2007 02:42 PM
Form Field Data Entry Properties =?Utf-8?B?Umlja0BDREM=?= Microsoft Frontpage 0 3rd Mar 2005 12:53 AM
Form with Filter, Data Not Found, Form Empty =?Utf-8?B?Um9iZXJ0IE51c3ogQCBEUFM=?= Microsoft Access Forms 0 2nd Dec 2004 02:55 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:49 PM.