Reset a form back to how it was when loaded

  • Thread starter Thread starter Simon
  • Start date Start date
S

Simon

Is there a a button i can click that well reload the foam back up to
how it was when i started

Instead od clsoing the form and remopeing it

Thanks REgardes

Simon
 
Add a button and use the following code:

Sub cmdButtonName_Click()
Me.Requery
End Sub

If you've filtered the form, you may need something like:

Sub cmdButtonName_Click()
DoCmd.RunCommand acCmdRemoveFilterSort
End Sub
 
Simon

"how it was when it loaded" is ambiguous...

Do you mean "showing the same data", or "with the same labels", or "with the
same background color", or ...?

If you want to 'reset' it, what has been changed that you are resetting?

"How" depends on "what"...

--
Regards

Jeff Boyce
www.InformationFutures.net

Microsoft Office/Access MVP


Microsoft IT Academy Program Mentor
http://microsoftitacademy.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