Results 1 to 4 of 4
  1. #1
    Will_BPP is offline Novice
    Windows 10 Access 2021
    Join Date
    Oct 2022
    Posts
    2

    Form linked to table record


    Hi all,

    Completely new to access and slowly learning the skillset to build a database. The one aspect I cannot get to grips with is linking a form and its associated buttons to a certain row on the table. To add some context I have created a form titled "overview" which gives a snapshot of the important data from the table and on that form are 5 buttons which take you to another form that captures more data for that specific button title i.e. "finance". The problem I have is that once you click on a button it links to record one on the table and not to the record the overview form is currently on. What is the solution for this?

    Any help on this is much appreciated, thanks.

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,445
    are 5 buttons which take you to another form that captures more data for that specific button title i.e. "finance".
    what code are you using?

    if it is docmd.openform, one of the parameters is the WHERE parameter. You need to complete this with something like

    PK=" & me.PK

  3. #3
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,530
    More on what CJ is suggesting, in case the data type is not numeric:

    http://www.baldyweb.com/wherecondition.htm
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  4. #4
    Will_BPP is offline Novice
    Windows 10 Access 2021
    Join Date
    Oct 2022
    Posts
    2
    Thank you both, this is exactly what I needed in terms of pointing me in the right direction of learning the WHERE parameter and the Macro etc for buttons. Thanks again.

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

Similar Threads

  1. Replies: 4
    Last Post: 09-01-2015, 01:47 PM
  2. Replies: 2
    Last Post: 04-15-2014, 10:03 PM
  3. Replies: 5
    Last Post: 11-12-2013, 12:14 AM
  4. Replies: 1
    Last Post: 02-18-2013, 02:55 AM
  5. best way to find a record in a linked table
    By BRV in forum Programming
    Replies: 14
    Last Post: 11-10-2011, 09:31 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