Results 1 to 6 of 6
  1. #1
    spandor is offline Novice
    Windows 10 Access 2016
    Join Date
    Jul 2019
    Posts
    2

    Passing id between to forms

    Hi,

    how I can pass ID from below form

    Click image for larger version. 

Name:	1.PNG 
Views:	12 
Size:	4.2 KB 
ID:	39024

    to filter data on another form according to which "Show" button was clicked?

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,816
    Options:

    1. form/subform arrangement

    2. OpenArgs argument of OpenForm

    3. global variable

    4. TempVars

    5. code behind second form references first form to pull data

    6. code behind first form sets value of control on second form

    7. dynamic parameterized query as second form RecordSource
    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
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,518
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,816
    Ooops, yeah, that should have been option 1
    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
    spandor is offline Novice
    Windows 10 Access 2016
    Join Date
    Jul 2019
    Posts
    2
    Quote Originally Posted by pbaldy View Post
    Yeap, it worked. Thanks.

  6. #6
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,518
    Happy to help!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Passing parameter between 2 forms
    By Skarvion in forum Forms
    Replies: 5
    Last Post: 02-05-2016, 11:01 AM
  2. Passing parameter between forms
    By jamedadi in forum Forms
    Replies: 5
    Last Post: 11-11-2013, 02:53 PM
  3. Passing data between forms
    By injanib in forum Forms
    Replies: 2
    Last Post: 07-01-2011, 09:36 AM
  4. passing values between forms
    By paulw in forum Access
    Replies: 4
    Last Post: 06-15-2011, 08:52 AM
  5. Passing Data Between Forms
    By exeTrix in forum Programming
    Replies: 3
    Last Post: 04-05-2011, 01:06 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