I have a number field (not an autonumber) that I want to increment by 1 when the user creates a new record. I keep having trouble with vba for this.
I have written pseudo code in comments, but can't seem to find the correct way to do it in VBA.
Private Sub cmdNewbtn_Click()
Dim rst As Recordset
Dim newrecnum As Long
Dim tempnum As Long
'Find last record (table = tblCongregationTeams)
'Store TeamID + 1 to tempnum
'Find new record
'Store tempnum to tblCongregationTeams.TeamID
End Sub
Thanks!!!