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 Programming / March 2005

Tip: Looking for answers? Try searching our database.

Subform Cmd Button

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sarah Stockton - 09 Mar 2005 16:51 GMT
I have two forms that have  a one to one relation. I want my user to fill out
the first form and then if they need the second form they press a command
button and it opens the second form. I can't figure out the code for Access
to treat the second form as if it were a subform. I want it to know that the
subform belongs to the first form.

thanks
Signature

Sarah Kathleen Stockton

Sarah Stockton - 09 Mar 2005 18:59 GMT
I have come closer to knowing what it is that I want. I want a TogleLink for
my users to click so that they can access the other form.

sks

> I have two forms that have  a one to one relation. I want my user to fill out
> the first form and then if they need the second form they press a command
[quoted text clipped - 3 lines]
>
> thanks
Marshall Barton - 09 Mar 2005 19:26 GMT
>I have two forms that have  a one to one relation. I want my user to fill out
>the first form and then if they need the second form they press a command
>button and it opens the second form. I can't figure out the code for Access
>to treat the second form as if it were a subform. I want it to know that the
>subform belongs to the first form.

If you want a true subform control to display the second set
of data, then place a subform control in the main form and
toggle its visibility.  You would probably use the
LinkMaster/Child properties to coordinate the two sets of
data, alternatinvely, you might prefer to set its
RecordSource property.

If you want the second set of data to be displayed in a
separate form, then you can use the OpenForm method's
WhereCondition argument to filter the second form's data to
the matching record.

Signature

Marsh
MVP [MS Access]

 
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.