Preventing Pasting Into A Field Or Form

jaythom

New member
Local time
Today, 17:40
Joined
Aug 16, 2003
Messages
7
Hello everyone,

I am trying to figure out a way to PREVENT users from pasting information from the windows clipboard into a field, or into the form altogether--whichever is easier.

I need both the Menu>Edit>Paste and Ctrl+V functions to be disabled.

I have thought about comparing the field's data to the data on the clipboard anytime a field was changed to see if they match; however, I do not know how to reference the clipboard other than actually pasting it (DoCmd.RunCommand acCmdPaste). I suppose that I could create a blank field, use the command to paste to the blank field, and then compare; however, this would only catch times when an entire field was pasted (not just a portion of the field).

I am unsure how to go about this and would appreciate any tips anyone has.

Thanks for any help in advance!

John
 

Users who are viewing this thread

Back
Top Bottom