Add New Records

G

Guest

I'm using Access 2003 and Sql 2000. I have an employee db that I'm try to
setup a form that can add new employees. On the form properties I've changed
the Data Entry to Yes but when the form opens it's blank.

I've tied several docmd's:
RunCommand acCmdRecordsGoToNew
GoToRecord,, acNewRec
GoToRecord acDataForm, "frmName", acNewRec

What do I need to do to add new records?

Thanks for the help,

Paul
 
T

tina

when you set a form's DataEntry property to Yes, the form should
automatically open to a new record, with no existing records available. if
instead you're seeing a "blank" form (no controls showing), then it sounds
like the form's Recordset is not updateable. i'm guessing that you're using
a query or a SQL statement for the form's RecordSource. open the query (or
the SQL statement, in form Design view) and see if you can add a record in
the query datasheet. if not, then the problem is the query (SQL statement)
and not the form.

hth
 
G

Guest

I found the problem. I made some changes to one of my tables and forgot to
set the primary key.

Thanks Tina
 

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