Results 1 to 2 of 2
  1. #1
    EddieN1 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    May 2011
    Posts
    313

    How to detect when a user tries to copy a row on a datasheet view

    I am running Access 2007. I have a simple form in datasheet view. Sometimes the operators try to "copy & paste" an existing row onto a new row. How can I detect the "copy" part of the process and tell the operator he can't do that? Although they can copy & paste data from individual fields, I don't want them to be able to copy an entire row.



    Thanks, Eddie

  2. #2
    John_G is offline VIP
    Windows XP Access 2003
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    One thing you could do, if possible, is put a unique index on a field (or combination of fields) that the users see and try to copy; then if they do a copy - paste of an entire row, the paste will generate an error which you can trap, issue an error message, and undo the paste.

    Beyond that, I don't know of a way to detect what data is selected when the "Copy" is done.

    HTH

    John
    Last edited by John_G; 07-16-2012 at 01:38 PM. Reason: additional comment

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

Similar Threads

  1. Replies: 3
    Last Post: 07-16-2012, 11:09 AM
  2. Replies: 9
    Last Post: 12-19-2011, 06:30 PM
  3. Replies: 1
    Last Post: 12-18-2011, 01:52 AM
  4. Datasheet view in tab only
    By cdzajp in forum Forms
    Replies: 1
    Last Post: 06-22-2011, 12:44 PM
  5. Datasheet View
    By Evgeny in forum Programming
    Replies: 6
    Last Post: 04-28-2010, 10:17 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