The following code SHOULD update, the most recently created record in a recordset ( of a subfrom ) It doesn't, it 'skips' to the wrong record and changes that ..
Is there a way using VBA to select the MOST recent record added ( which will always be the right one in this instance ) I thought Recordset.MoveLast, would take care of this by definition. Thanks in advance.
Code:
Set frm = Forms!FrmNavigationLeft!NavigationSubform.Form!NavigationSubform!sfrmReferrals.Form
frm.Requery
With frm.RecordsetClone
If .RecordCount > 0 Then
.MoveLast
.Edit
!Client_ID = cid
!Referral_ID = refid
!CalcClient_Name = n
.Update
End If
