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

DoCmd.GoToRecord , , acNewRec seems to be replacing records in table

Status
Not open for further replies.

drdexter33

Programmer
Jun 11, 2003
17
US
I'm not an Access Developer, but I've been asked to figure out what the problem is with our little homegrown Access app.

When a user clicks on a button to add a person to a table, it looks as if the existing record in the table is getting updated, instead of appending the record to the table.

The sub looks like this:

Private Sub btnNewPt_Click()
DoCmd.GoToRecord , , acNewRec
DoCmd.GoToControl "EmpNum"
End Sub

But i can't figure out how this table is actually getting updated..

Thanks

doug
 
Hello,

the acNewRec doesn't create a new record, it just puts you in a position to enter a new record in a 'clean' form, the new record is created only after you enter data into the 'clean' form

greets.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top