Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

add but not edit records

Status
Not open for further replies.

gmacg

Technical User
May 29, 2002
41
US
Hi, What can I do to allow a certain group of users to add records to a table, but not edit them? I have a subform that opens with certain options visible according to the group to which the user belongs. The form works great, but it seems that no matter what I do, I can't set the subform to allow additions, but not edits. I also need to allow other groups to be able to edit the records. Any suggestions?

 
Well, first thought is to set the form to Data Entry, so existing records are not available to the users in question.

ChaZ

There Are 10 Types Of People In The world:
Those That Understand BINARY And Those That Don’t.
 
Yes, it seems that would be the first option, but it didn't work. The user picks an employee name from a drop down box on the main form and the subform opens to the record selected from the main form. If I set the subform to DataEntry, I get a datatype mismatch error.
 
So the subform is for viewing, And Adding records then?

I would have a button to select
Me.Subform.Form.DatEntry = True.
When desired.
Obviously, you can't navigate thru records, while in DatEntry mode. So it's one or the other.
When you press another button "Save", then,
Me.Subform.Form.DatEntry = False
 

You do have user-level security in place, don't you?
Grant Insert Data and Revoke Update Data for that group on your table
 
Yes, I have user security. That's what is so strange. I did exactly what you said Jerry, but it didn't work. I'm not at work today so I won't be able to tell you exactly what happened. I'm hoping my day off will allow me to look at it with a fresh eye tomorrow. I've been struggling with this for days.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top