Access: How to disable data copying from datasheet form

A

ANSWER

I have main form who contains subform in datasheet.
I want to disable (selecting one column and then Ctrl + C).
I just want them to see results in datasheet but not to copy data form
datasheet.

Thanks in advance
 
M

Marin Kostov

Open the form in design view, click Properties, all tab, and make Key
Preview YES.
Then code the Form_KeyDown Event:

Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
Select Case Shift
Case acCtrlMask
If KeyCode = vbKeyC Then
KeyCode = 0
End If
End Select
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top