Minimizing Access

P

pompeyjim

I’ve created a Command Button that minimizes the form I'm currently on, but I
want it to minimize Access. Is this possible?
 
C

Chris B via AccessMonster.com

Hi,

on the command buttons 'on click' select [event procedure] and place this
code
Change Command5 to whatever your buttons name is:

...............................................................................
.............
Private Sub Command5_Click()
On Error GoTo Err_Command5_Click


DoCmd.RunCommand acCmdAppMinimize
Exit_Command5_Click:
Exit Sub

Err_Command5_Click:
MsgBox Err.Description
Resume Exit_Command5_Click

End Sub
..........................................................................
 

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