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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top