In the initial series of posts, it didn't penetrate my feeble mind the notion of "commit", so how that might relate to code escaped me as well. All these years and that was new to me.......... playing hooky from class that day?
Anyway, thanks so much for hanging in there with me. The code below seems to be getting the job done.
Code:
Private Function CommitNow(ID As Integer) As Boolean
'*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
' A new family named "scrubbed" so we can commit the new record and then make it the
' current record.
'*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
On Error GoTo CmtErr:
Me.Dirty = False
Me.RecordsetClone.FindFirst "FamilyID = " & ID
Me.AllowAdditions = False
intFamID = ID
CommitNow = True
ErrExit: Exit Function
CmtErr:
MsgBox "Error attempting to save new family" & vbNewLine & _
"Error number: " & Err.Number & vbNewLine & _
"Error description: " & Err.Description
CommitNow = False
GoTo ErrExit
End Function