Results 1 to 4 of 4
  1. #1
    JeffG3209 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2011
    Location
    Weatherford, Texas
    Posts
    66

    Linking two forms

    I have two forms.
    MTD
    MTD Navigation

    MTD contains specific details of each record.
    MTD Navigation is rows of records.

    The question is how do I link the navigation form to the details? Specifically, how do I make it where when I click a row it will go to the other form details. I used the "multiple forms" under form design. I'm new to all of this so please bear with me

  2. #2
    Bwilliamson is offline Novice
    Windows XP Access 2007
    Join Date
    May 2011
    Location
    Greenville, SC
    Posts
    8
    You will want to go to your Database Tools Tab and select relationships. Add both tables and then create a "join" by draging and dropping the Primary Key field between the two which will draw a line between the two tables. Right click on the line and edit relationships. Select Join Type. Select option 2 all records from MTD and only those from MTD Navigation where the joined fields are equal. That should get you what you need.

    Good luck!

  3. #3
    JeffG3209 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2011
    Location
    Weatherford, Texas
    Posts
    66
    I actually only have one table named DATABANK. Can I still do this?

  4. #4
    Bwilliamson is offline Novice
    Windows XP Access 2007
    Join Date
    May 2011
    Location
    Greenville, SC
    Posts
    8
    Sorry, I misread. Thought 2 forms was 2 tables.

    You'll need to create a Event Procedure using VBA, probably at the On DBl Click action on the Navigation form with something like:

    Code:
     
    Private Sub Navigation_DblClick(Cancel As Integer)
     Dim strNav As Variant
     
     strNav = "[Field name]"
        DoCmd.OpenForm FormName:="frmMTD Navigation", WhereCondition:=strNav
     End Sub
    Then the following screen will need to have a filter on the Data property tab of [Field name].

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Linking forms
    By warrigal in forum Database Design
    Replies: 2
    Last Post: 04-07-2011, 05:12 PM
  2. Linking forms (I think!!!)
    By Sleepymum in forum Forms
    Replies: 5
    Last Post: 02-21-2011, 07:28 AM
  3. Linking Forms
    By glasgowlad1999 in forum Forms
    Replies: 1
    Last Post: 02-02-2011, 09:35 AM
  4. Linking two forms together
    By Lxmanager in forum Access
    Replies: 8
    Last Post: 09-27-2010, 05:10 PM
  5. Linking Forms
    By dalton in forum Forms
    Replies: 1
    Last Post: 05-30-2010, 11:23 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums