I do not want to delete any new rows. I just don't want the user to delete a row by submitting a delete command through the form.
Main Topics
Browse All TopicsI have an Access 2003 table linked to an infopath form. I want to prevent users from submitting a form and deleting rows in the back-end. I can't prevent the users from deleting rows in infopath because the add and delete rows function work together and I need them in the form. All I would like to do is lock the table in the Access so rows can be added and data can be edited, but a user CANNOT DELETE the row. Do I need to use code?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Here is what I usually do.
I assume you have a record ID field. This would be blank in InfoPath until you submit on any new rows. All rows in the DB would have a value.
I create two repeating table or section controls. One is used to display or edit (if needed) existing records. This has conditional formating that hides any records with blank ID's. I have insert and delete turned off.
In the second one I do the oposite and hide any records with ID values and insert and delete is on. This way only new blank rows can be seen. So once they submit the records they cannot be deleted. I often make them submit each record by using conditional formating that once they add data to a row that they cannot insert or delete another row until a submit occurs.
Business Accounts
Answer for Membership
by: GRayLPosted on 2009-10-19 at 09:04:51ID: 25606447
What about deleting a row the user just added?