dbTalk Databases Forums  

Subform filter issue

comp.database.ms-access comp.database.ms-access


Discuss Subform filter issue in the comp.database.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
yagfxgeek
 
Posts: n/a

Default Subform filter issue - 06-09-2004 , 10:31 AM






I have a subform that I am attempting to set a filter value for.
However access claims that the subform does not have a property or
method called filter. I know its not a misspelled name or anything as
I can execute a refresh on the sub form:

Forms!frm_BUDATA!Contacts.Requery

However, the statement:

Forms!frm_BUDATA!Contacts.Filter = sFilter

Generates an error. Can anyone shed some light on this?

Thanks!

Reply With Quote
  #2  
Old   
Andrew Backer
 
Posts: n/a

Default Re: Subform filter issue - 06-14-2004 , 02:02 PM






I reference the subform from within my form. I can not get it to
reference properly the way you do.

This is how it looks for me :

Me.subFormName.Form.Filter = "string"
Me.subFormName.Form.FilterOn = true

What is 'Contacts'?

I *can* reference the form globally by using an _ where you have the
first !. I would use "Form_frmBUDATA". Hrm...

-- Andrew Backer / abacker .@. comcast .dot. net

yagfxgeek wrote:

Quote:
I have a subform that I am attempting to set a filter value for.
However access claims that the subform does not have a property or
method called filter. I know its not a misspelled name or anything as
I can execute a refresh on the sub form:

Forms!frm_BUDATA!Contacts.Requery

However, the statement:

Forms!frm_BUDATA!Contacts.Filter = sFilter

Generates an error. Can anyone shed some light on this?

Thanks!

Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.