Results 1 to 6 of 6
  1. #1
    tylerg11 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Sep 2011
    Posts
    200

    Command Button Wizard and Matching Fields

    I wan to link two forms. When I open one record within the first form, I can click a button that opens the related record in the second form based on a field common to both. However, when I get to the Matching Fields part of the wizard, the left side (field list for the first form) is not listing anything. If I try to create the button on the second form, when I get to the Matching Fields part I have no problems. Do relationships between the forms have anything to do with this??? Why are the fields not showing when I go from the first form to the second, but then they all show when I go from the second to the first?

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,892
    Wizards, ugh! Don't like and don't use.

    You are building a form/subform arrangement?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    tylerg11 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Sep 2011
    Posts
    200
    just trying to link two seperate forms...although I have the same problem if I use the 2nd form as a subform too. It's weird...I can link from Form B to Form A, but not from Form A to Form B!

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,892
    Yes, table relationships will affect how forms are linked.

    Can't 'link' two standalone forms. Must be form/subform.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    tylerg11 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Sep 2011
    Posts
    200
    Linking to the other as a subform doesn't work either. Do the table relationships of their data sources indicate which form is the "main form" and which would be the subform?

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,892
    Yes, as I said, relationships affect form linking. Won't matter if you actually have the relationships built. The many side of a relationship will be the subform. For example, an invoice is one record but an invoice can have many products related. You will have a table for invoice records, a table of available products, and a table that relates invoice with products. The last table would be in subform to the Invoice form.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Command Button Wizard
    By cscobba in forum Forms
    Replies: 7
    Last Post: 01-26-2011, 04:43 PM
  2. Concatenating fields from matching records
    By MWMike in forum Queries
    Replies: 1
    Last Post: 10-28-2010, 10:49 PM
  3. Replies: 1
    Last Post: 07-27-2010, 02:27 PM
  4. Replies: 5
    Last Post: 03-20-2010, 08:30 AM
  5. Replies: 3
    Last Post: 10-16-2009, 07:54 AM

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