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 2008

Tip: Looking for answers? Try searching our database.

Link for sub form on form to sub form in same form

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
billybanter67 - 24 May 2008 00:09 GMT
Hi all,

I have a form called "orders by customer" by customer, on this form I
have a sub form called "orders by customer subform".

At the moment I have it that you double click an order in the "orders
by customer subform" and it opens up another form called "orders" to
the order you double clicked on.

The code I use is

Dim stDocName As String
   Dim stLinkCriteria As String
   strDocName = "orders"
   strWhere = "[orderid]=" & Me![OrderID] & ""
   DoCmd.OpenForm strDocName, , , strWhere

What I want to do is now put the "orders" form as another subform in
the main form "orders by customer" and when you double click on
"orders by customer subform" on a order it refreshes the other sub
form "orders" to show the details of that order.

Does that make sense?

Thanks
Jeanette Cunningham - 24 May 2008 00:21 GMT
billybanter67,
there is an example of how to do this in the Northwind sample database.
Look at the form called Customer Orders.

To open Northwind, in A2003, go to help, choose sample databases and
northwind.

Jeanette Cunningham -- Melbourne Victoria Australia

> Hi all,
>
[quoted text clipped - 21 lines]
>
> Thanks
billybanter67 - 24 May 2008 09:32 GMT
 
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.