View Full Version : Go to last record in an subform?


Lizzard
08-09-2001, 04:11 AM
I´m trying to open a subform and then displaying the last record. I´m useing the subforms "SourceObject" in vba to select the form I want to display in the subform. Then I´m trying to use "GotoRecord" and the option aclast to go to the last record. But then I´m geting a errormessage telling me that the form isn´t open.

Any help or other approach to the problem will be real nice!
Thanks in advance!!
/Lizzard

Rich
08-09-2001, 07:17 AM
DoCmd.GoToControl SubformName
DoCmd.GoTo Record
HTH

Lizzard
08-09-2001, 11:42 PM
Thanks!! Works fine now!