Results 1 to 4 of 4
  1. #1
    JFo is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2011
    Posts
    393

    Selecting a Record in Datasheet view

    Not sure if this is possible, however what I have is a search form that filters records (pieces of equipment that are involved in an inspection) displayed in a subform in datasheet view (many different pieces of equipment).

    What I want to be able to do is click on the piece of equipment and I want this to open or make another subform visible or perform some (any) action

    Is this possible in datasheet view as it displays all the records however I can't select a specific record and use a command button in this view for example

    Thanks

  2. #2
    John_G is offline VIP
    Windows XP Access 2000
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    Hi -

    Yes, that can easily be done. Controls in datasheet view respond to the on-click event the same as they do in any other view, and values for all fields in the record you clicked on are available (even if they are in the record source but not displayed).

  3. #3
    JFo is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2011
    Posts
    393
    Quote Originally Posted by John_G View Post
    Hi -

    Yes, that can easily be done. Controls in datasheet view respond to the on-click event the same as they do in any other view, and values for all fields in the record you clicked on are available (even if they are in the record source but not displayed).
    Thanks for your response John G so I added a command button that opens another form dependant on the record selected and it works in single form view however I can't even see the command button in datasheet view to click on it

    Thanks

  4. #4
    JFo is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2011
    Posts
    393
    Never mind I didn't need a command button I can just code it into the individual controls and it works

    Thanks

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

Similar Threads

  1. Replies: 2
    Last Post: 10-21-2011, 07:11 AM
  2. Datasheet view in tab only
    By cdzajp in forum Forms
    Replies: 1
    Last Post: 06-22-2011, 12:44 PM
  3. SearchBox and Datasheet View
    By gio25 in forum Forms
    Replies: 3
    Last Post: 03-23-2011, 06:07 PM
  4. Datasheet View
    By Evgeny in forum Programming
    Replies: 6
    Last Post: 04-28-2010, 10:17 AM
  5. Form - Datasheet View
    By kalove in forum Forms
    Replies: 0
    Last Post: 06-20-2007, 11:29 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