Results 1 to 6 of 6
  1. #1
    hardoc is offline Novice
    Windows 10 Access 2007
    Join Date
    Apr 2020
    Posts
    4

    Linking a cell/field in one form to link back to another form on click


    Hi All! I'm very new to Access and created a very simple Form where I can enter individual contact information like Name, Address, etc.. This information than is linked and populates the main Form that lists all the contacts and their information in rows.

    I want to be able to click on the person name on the main Table (list of all the contacts) and have it take me to the individual contacts information Form.

    I hope this make sense... I've done some searches online and the only instructions I can find to do anything like this is to create another Form and have that link to the individual contact Form on click... but this is not ideal for me. I'd much rather just be able to click from Table to Form.

    Any advice would be greatly appreciated! Thanks

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    put a button on the form, the click event will be

    docmd.openform "f1Contact",,,"[id]=" & txtID

    this will open the single record form, using the ID field in the record the cursor is on.

  3. #3
    hardoc is offline Novice
    Windows 10 Access 2007
    Join Date
    Apr 2020
    Posts
    4
    Hi thanks! I mistyped though.. I want to have a button or some way to take me from a Table to a Form... I'll edit my post.. .but thank you for the quick response!

  4. #4
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 10 Access 2016
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,610
    Quote Originally Posted by hardoc View Post
    Hi thanks! I mistyped though.. I want to have a button or some way to take me from a Table to a Form... I'll edit my post.. .but thank you for the quick response!
    You should never need to open a table. Tables store data. You should be using forms to add/edit the data in the tables.
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  5. #5
    hardoc is offline Novice
    Windows 10 Access 2007
    Join Date
    Apr 2020
    Posts
    4
    Hi Again - Can you tell me where to add this... I can't find "click event" I created another form so now it is form to form.

  6. #6
    hardoc is offline Novice
    Windows 10 Access 2007
    Join Date
    Apr 2020
    Posts
    4
    Thanks.. I wasn't able to get a form to have the look and feel of the table that I wanted but I was able to play with it a bit and now have a form I'm happy with so I appreciate your advice and will only work in the form view and leave the table alone going forward

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

Similar Threads

  1. Replies: 1
    Last Post: 04-10-2019, 09:00 AM
  2. Replies: 7
    Last Post: 12-29-2016, 11:43 PM
  3. Replies: 2
    Last Post: 11-09-2016, 05:54 PM
  4. Button linking back to form?
    By Raygar in forum Reports
    Replies: 1
    Last Post: 05-14-2012, 06:26 PM
  5. Replies: 1
    Last Post: 02-20-2012, 01:59 PM

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