Subforms

T

Teefa

Hi,
I can't figure out how to set my subform so that it is displaying it's last
record while i am scroling through the records of the main form.

Any Suggestions??
Thanks in advance....much appreciated!
 
M

Marshall Barton

Teefa said:
I can't figure out how to set my subform so that it is displaying it's last
record while i am scroling through the records of the main form.


I think you can use code in the main report's Current event
procedure:

With Me.subreport.Form.RecordsetClone
If .RecordCount > 0 Then
.MoveLast
Me.subreport.Form.Bookmark = .Bookmark
End If
End With
 
Top