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 / General 2 / January 2008

Tip: Looking for answers? Try searching our database.

Linking Table Data by Form Actions

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mike - 11 Jan 2008 15:27 GMT
I have a form that contains record number information and alittle bit of data
based on this record number.  Each "record number" is linked to a couples
information.  This couples information is things like name, address, city,
etc.  When I'm on the first form, we'll call "Protocol_Index", I hand type a
protocol number to designate this unique record.  Once I've placed this
protocol number in the "Protocol_Index" form, there's a button that takes me
to another form, we'll call "Couple_Index".  Once I get to the "Couple_Index"
form I would like the protocol number that I fed into the "Protocol_Index"
form to automatically link to this record.  Is this possible and if so how?  
I was able to do this in the past and for some reason or another its not
working.  Any suggestions?
Rick A.B. - 11 Jan 2008 15:59 GMT
> I have a form that contains record number information and alittle bit of data
> based on this record number.  Each "record number" is linked to a couples
[quoted text clipped - 7 lines]
> I was able to do this in the past and for some reason or another its not
> working.  Any suggestions?

Mike,

You want to use a link criteria in your onclick event code when
opening the "Couple_Index form.
Something like:

Private Sub cmdButton_Click()

Dim stDocName As String
Dim stLinkCriteria As String

   stDocName = "Couple_Index"

   stLinkCriteria = "[field on Couple_Index that corresponds to
protocal number]=" & Me![name of field on current form containing
Protocal number]

   DoCmd.OpenForm stDocName, , , stLinkCriteria

end sub

Look out for word wrap

Hope that helps
Mike - 11 Jan 2008 19:32 GMT
Thanks for the response Rick!  However this didnt seem to help.  I think this
can be accomplished by using the command button wizard as well but it still
doesnt seem to update on field in the Couples_Index form/table.  

Within the Protocol_Index table/form, I have a field called ProtocolNumber
and ProtocolIndex.  The ProtocolIndex is just an autonumber field to keep
track of the records, which also falls as the primary key to the table.  
Within the Couples_Index table I've placed the "ProtocolIndex" field in so it
would match with the one coming in from the Protocol_Index table/form.  Does
this make any sense?

> > I have a form that contains record number information and alittle bit of data
> > based on this record number.  Each "record number" is linked to a couples
[quoted text clipped - 32 lines]
>
> Hope that helps
 
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.