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 / Forms / May 2007

Tip: Looking for answers? Try searching our database.

Refer to another subform.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
George R - 13 May 2007 03:02 GMT
I have two subforms on one main form. They are both controls of the same main
form. Neither is a subform of the other, and they are not linked. Nor are
they linked to the main form. This arrangement is to allow simultaneous
viewing using a continuous form for form 1 and datasheet view for form 2.
While in form 1 I would like to modify and apply a filter to form 2 and have
the new, filtered data immediately appear. I need to use the OnCurrent event
of form 1 because the form 2 filter can change based on a field value in form
1.
I suspect my problem has been in coming up with the correct syntax for
refering to the second form.
I would appreciate any suggestions.
Al Campagna - 13 May 2007 04:17 GMT
George,
  When in doubt, I always use full addressing to address subform to subform...
       Forms!frmMyMain!frmMySub2.Form.Filter =

Signature

hth
Al Campagna . Candia Computer Consulting . Candia, NH USA
Microsoft Access MVP
http://home.comcast.net/~cccsolutions

"Find a job that you love, and you'll never work a day in your life."

>I have two subforms on one main form. They are both controls of the same main
> form. Neither is a subform of the other, and they are not linked. Nor are
[quoted text clipped - 7 lines]
> refering to the second form.
> I would appreciate any suggestions.
Joan Wild - 13 May 2007 19:07 GMT
I always found the following to be quite helpful
http://www.mvps.org/access/forms/frm0031.htm 

Signature

Joan Wild
Microsoft Access MVP

>I have two subforms on one main form. They are both controls of the same main
> form. Neither is a subform of the other, and they are not linked. Nor are
[quoted text clipped - 7 lines]
> refering to the second form.
> I would appreciate any suggestions.
 
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



©2009 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.