S
sandi
Hello group mates:
I've searched the groups but have only come up with half the answer.
Please forgive the stupid question.
I have a form with 2 pages in a tab control.
What I want to do is simple, when I hit page one, I would like to go to
the last record, same for page 2. Page 1 is in form format and 2 is in
datasheet format.
I have this code in my main form:
Private Sub Form_Current()
Me.cboLastName = CaseNumber 'synchronize txtboxes
On Error Resume Next
Dim frm As Form
Set frm = Me.SubVisits.Form 'this is Page 1
With frm
.RecordsetClone.MoveLast
.Bookmark = .RecordsetClone.Bookmark
End With
End Sub
This works great for the first page...
Should I use a select statement or dim another form for my second
subform?
Many thanks ahead of time!
Sandi
I've searched the groups but have only come up with half the answer.
Please forgive the stupid question.
I have a form with 2 pages in a tab control.
What I want to do is simple, when I hit page one, I would like to go to
the last record, same for page 2. Page 1 is in form format and 2 is in
datasheet format.
I have this code in my main form:
Private Sub Form_Current()
Me.cboLastName = CaseNumber 'synchronize txtboxes
On Error Resume Next
Dim frm As Form
Set frm = Me.SubVisits.Form 'this is Page 1
With frm
.RecordsetClone.MoveLast
.Bookmark = .RecordsetClone.Bookmark
End With
End Sub
This works great for the first page...
Should I use a select statement or dim another form for my second
subform?
Many thanks ahead of time!
Sandi