View Full Version : Edit vs Add


Sol
07-12-2000, 10:40 AM
Hi!

Is there a way to prevent users from entering in new records when a form is open in Edit Mode?

Thanks!!

R. Hicks
07-12-2000, 11:15 AM
Change the Allow Additions property of the form to No.

HTH
RDH

Sol
07-12-2000, 11:46 AM
i'm using the same form for add and edit mode- will this still work?

Thanks Again http://www.access-programmers.co.uk/ubb/smile.gif

R. Hicks
07-12-2000, 12:58 PM
Yes, if you open this form from a main switchboard. Make a button to open the form in edit mode and a button to open it in data entry mode.

Leave the Allow Additions property set to No.

The code to open the form in Edit mode would be:
DoCmd.OpenForm "YourFormName", , , , acFormEdit

The code to open the forn in Data Entry would be:
DoCmd.OpenForm "YourFormName", , , , acFormAdd

("YourFormName" should be the name of your Form)

HTH
RDH

Sol
07-14-2000, 10:07 AM
Thanks! This helped :0)