How can I use this command and prevent users from adding or deleting
records - only allow editing records?
DoCmd.OpenTable "TableName",acViewNormal,acEdit
You are, however, making a big mistake by allowing users to enter/edit
data directly into a table. Tables have no useable events and are
susceptible to data entry errors.
You should hide your tables and make the users use a form for all
entry/edits. No reason not to. If you wish the appearance of a table,
simply open the form in Datasheet view.