View Single Post
  #2 (permalink)  
Old June 10th, 2003, 08:12 PM
papparuff papparuff is offline
Registered User
 
Join Date: Jun 2003
Location: Lakewood, WA, USA.
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You must set the focus to the subform first, then the docmd. Here's what your code would look like:

    ' Set focus to the subform
    NameOfYourSubForm.SetFocus
    ' Move to the last record on the subform
    DoCmd.RunCommand acCmdRecordsGoToLast


John Ruff - The Eternal Optimist :-)
Reply With Quote