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 / July 2007

Tip: Looking for answers? Try searching our database.

Linked forms

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tara - 09 Jul 2007 18:50 GMT
I'm trying to open one form (frmSummary) from another (frmContacts) and pass
data to the second form when it opens.  I thought I had the code right, but
it's not working.  Not sure if this would make a difference or not, but
ClientCaseInfoID on the first form is held in a combo box that is based on a
query.  

Here's the code I'm using:

Private Sub Label43_Click()
   DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
   
   Dim stDocName As String
   Dim stLinkCriteria As String
   
   stDocName = "frmSummary"
   stLinkCriteria = "[ClientCaseInfoID]= " & Me![ClientCaseInfoID]
   
   DoCmd.OpenForm stDocName, , , stLinkCriteria

Any ideas what's going on?

Thanks in Advance
Tara - 09 Jul 2007 19:56 GMT
Never mind!  I figured it out!

Thanks anyway!

> I'm trying to open one form (frmSummary) from another (frmContacts) and pass
> data to the second form when it opens.  I thought I had the code right, but
[quoted text clipped - 18 lines]
>
> Thanks in Advance
 
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.