How to disable editing of only previous records in form...???

K

khuram

I want users should always add new records in form,,, can view previous
record but cannot edit/delete previous records. Any suggestion please......!
 
A

Allen Browne

khuram said:
I want users should always add new records in form,,, can view
previousrecord but cannot edit/delete previous records.

Set these properties for your form:
Allow Additions yes
Allow Edits no
Allow Deletsions no
 
K

khuram via AccessMonster.com

hmmm. this setting is good for a single form. but not working in form,
subform setting... plzzz suggest some solution.

regards!
 
K

khuram via AccessMonster.com

Add new record in main form does not fetch empty rows to write on in the
subform....
khuram said:
hmmm. this setting is good for a single form. but not working in form,
subform setting... plzzz suggest some solution.

regards!
[quoted text clipped - 3 lines]
Allow Edits no
Allow Deletsions no
 
A

Allen Browne

You're right: if the subform's AllowEdits is No, and the subform is on the
form, then it's one of the controls that cannot be edited.

What I actually do is to use the code in this link to lock only the bound
controls on the main form and subform:
http://allenbrowne.com/ser-56.html

--
Allen Browne - Microsoft MVP. Perth, Western Australia

Reply to group, rather than allenbrowne at mvps dot org.

khuram via AccessMonster.com said:
Add new record in main form does not fetch empty rows to write on in the
subform....
khuram said:
hmmm. this setting is good for a single form. but not working in form,
subform setting... plzzz suggest some solution.

regards!
I want users should always add new records in form,,, can view
previousrecord but cannot edit/delete previous records.
[quoted text clipped - 3 lines]
Allow Edits no
Allow Deletsions no
 

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