I have set RecNum default value in the table tblRecommendations to Null. I then typed the code into the frmRecommendations BeforeInsert event
Private Sub Form_BeforeInsert(Cancel As Integer)
Me.RecNum = Nz(DMax("RecNum", "tblRecommendations", "ReportID = " & Me.ReportID), 0) + 1
End Sub
When...