Prevent row from being deleted

M

Murray

Hi all
I have a form with a subform on it. The subform is displayed in Datasheet
view. If a user right clicks on a row it allows for the user to insert a new
record or deleted the current record. Is there a way to prevent the user from
deleting the record?

Thanks
 
G

gllincoln

Hi Murray,

Sure - set the sub-form's property 'allow deletions' (in design mode, property sheet) to false.

Gordon
 
J

John W. Vinson

Hi all
I have a form with a subform on it. The subform is displayed in Datasheet
view. If a user right clicks on a row it allows for the user to insert a new
record or deleted the current record. Is there a way to prevent the user from
deleting the record?

Thanks

Are you talking about *deleting* the record from the table entirely, or
editing the content of the record so that it's effectively a replacement
record?
 

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