Making a button that scrolls to the bottom of a form

  • Thread starter Thread starter Phil M.
  • Start date Start date
P

Phil M.

I have a form and a subform:

I want to put a button in the form, that makes the subform scroll completely
to the bottom.

Is it possible to do this in VB or something?

Thanks
Phil M.
 
Try putting this in the click event of a command button:

sfrmContainer.SetFocus
DoCmd.RunCommand acCmdRecordsGoToLast

Where sfrmContainer is the name of the Subform/Subreport container.

--

Sco

M.L. "Sco" Scofield, MCSD, MCP, MSS, Access MVP, A+
Useful Metric Conversion #15 of 19: 5 dialogues = 1 decalogue
Miscellaneous Access and VB "stuff" at www.ScoBiz.com
 

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

Back
Top