The default New Record button does not have a name you can identify with
code, unless there is some elaborate code that can do the trick. It's all
or nothing with the Navigation Bar.
Here is some code I use for custom navigation buttons. This is designed to
be placed in the form's Current event. Laterly I have been using a variant
of the code in a standard code module so that I don't need to add the code
to the Current event each time I create a form, but this is simpler to
implement.
'Inserts current record number and total number of records
Dim strCurrent as String, strTotal as String
strCurrent = Me.CurrentRecord
Me.RecordsetClone.MoveLast
strTotal = Me.RecordsetClone.RecordCount
If Me.NewRecord Then
Me.txtCounter = "New Record"
Else
Me.txtCounter = strCurrent & " of " & strTotal
End If
'Enable navigation buttons only when there are records available
Me.cmdPrev.Enabled = Not Me.CurrentRecord = 1
Me.cmdFirst.Enabled = Not Me.CurrentRecord = 1
Me.cmdNext.Enabled = (Me.CurrentRecord = 1 And Me.Recordset.RecordCount
Or Me.CurrentRecord < Me.Recordset.RecordCount
Me.cmdLast.Enabled = (Me.CurrentRecord = 1 And Me.Recordset.RecordCount
Or Me.CurrentRecord < Me.Recordset.RecordCount
This assumes an unbound text box named txtCounter, and four navigation
buttons: cmdFirst, cmdPrev, cmdNext, cmdLast. You would probably have
cmdNew also.
The code in the Click event for cmdFirst is:
DoCmd.GoToRecord , , acFirst
Substitute acPrevious, acNext, acLast, and acNewRec as needed for the other
command buttons.
You can hide the buttons, leave them out, or whatever you choose. This
should give you a starting place. Play around with it for a while, and post
back if you have more questions about how to implement your particular
requirements.