New Record

P

Pass-the-reality

I created a button on my form through wizard that allows me to click on it
and create a new form. When I click the button, it sets my CallSheetEntryID
to AutoNumber until I type in the form. This is locking up other people's
systems. I added

Me.CallSheetEntryID.SetFocus
Me.Dirty = True

to my code (full code below). When I click the New Record button, it now
says " In order to change data through this form, the focus must be in a
bound field that can be modified. What can I do?

Private Sub Command74_Click()
On Error GoTo Err_Command74_Click


DoCmd.GoToRecord , , acNewRec
Me.CallSheetEntryID.SetFocus
Me.Dirty = True

Exit_Command74_Click:
Exit Sub

Err_Command74_Click:
MsgBox Err.Description
Resume Exit_Command74_Click

End Sub
 

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