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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Allow Edit - No Addition with VBA

Status
Not open for further replies.

EllieFant

MIS
May 15, 2001
513
US
I have a form that I use to allow users to search for a first name of an employee and open the form to all records containing that name. I want to open the form and allow edits but not allow deletions or additions. I know that I can set this in the forms properities, but there are times that I will want the form to allow deletions and additions. This is the code I am using behind my search button on my search form:

DoCmd.OpenForm "frmEmpJob", acNormal, "SearchFirst", "", acEdit, acNormal


What do I have to change?

Thanks for the help!
Ellie
**Using Access 97 at work**
**Using Access 2000 at home**

lena.wood@starband.net
 
got the help I needed - thanks anyway Ellie
**Using Access 97 at work**
**Using Access 2000 at home**

lena.wood@starband.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top