Private Sub cmdClone_Click()
Dim rsParent As DAO.Recordset
Dim lngID As Long
Dim lngNewID As Long
Dim bm As Variant
Dim strMainField1 As String
lngID = Me.ID
strMainField1 = Me.MainField1
Set rsParent = Me.Recordset.Clone
With Me.RecordsetClone
.AddNew
!MainField1 = strMainField1
.Update
bm = .LastModified
.Bookmark = bm
lngNewID = !ID
End With
CurrentDb.Execute "Insert Into SubTable (MainID, SubField1, SubDield2) " & _
"Select " & lngNewID & ", SubField1, SubDield2 From " & _
"SubTable Where MainID = " & lngID
Set rsParent = Nothing
Me.Bookmark = bm
End Sub