Hi,
I have a form using tab controls. The 2nd tab control is named "weekly_details " in which I embedded a form called Frm:weeklydetai ls. What I want to happen is when I click on that tab control, the recordset shown is the last record in my table called "weeklydetails" . My logic below doesn't seem to work very well. Any suggestions?
Thanks.
Daryl
I have a form using tab controls. The 2nd tab control is named "weekly_details " in which I embedded a form called Frm:weeklydetai ls. What I want to happen is when I click on that tab control, the recordset shown is the last record in my table called "weeklydetails" . My logic below doesn't seem to work very well. Any suggestions?
Code:
Private Sub Weekly_Details_Click()
'sets focus to the Subform Form_frm:weeklydetails
Me.Form_frm: weeklydetails.SetFocus
'move to the last record of the weekly details database
DoCmd.RunCommand (acCmdRecordsGoToLast)
End Sub
Daryl
Comment