Results 1 to 4 of 4
  1. #1
    Robeen is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,596

    In Form Datasheet View - how to create an event for a particular row a user clicks on.

    I have a Form that shows rows in Datasheet View.
    I want to write code for when a user clicks anywhere in a row.
    When the row is clicked, I want to take an identifying value from that row and open another Form passing that value as an OpenArg.

    The question I have is:
    How do I identify that a particular row was clicked so that I can get the identifying value from that row to open my other Form?

    Thanks!!

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    21,716
    Referring to the textbox would get the value of the record with focus.

    Me.KeyField
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Robeen is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,596
    Thanks, Paul!! Appreciate it.
    I hope you are well!!

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    21,716
    Happy to help, and doing great thanks! Hope you are too.
    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. Replies: 3
    Last Post: 08-18-2013, 09:14 PM
  2. Replies: 4
    Last Post: 06-01-2013, 11:32 PM
  3. Replies: 6
    Last Post: 11-21-2012, 05:10 PM
  4. Replies: 1
    Last Post: 07-16-2012, 01:26 PM
  5. How to not add Record if User clicks a BUTTON
    By taimysho0 in forum Programming
    Replies: 7
    Last Post: 12-06-2011, 10:49 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 - Senior Forums