Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I maximise MS Access - the application

Status
Not open for further replies.

StuKregor

Technical User
Jun 18, 2001
15
0
0
AU
I have a form with a timer that reminds users every half an hour to enter their data.

At the moment a msgbox comes up which they click OK. (when access is minimised the msgbox comes up flashing on the task bar)

When they click OK I would like to maximise Access, to save them having to then click it on the windows task bar.

Any ideas?
 
Add the following code to a VB module. Thanks to Michael Kaplan for posting this in the comp.databases.ms-access Newsgroup. In the timer event of the form, just before the message box, add the line Call MaximizeAccess.

Private Declare Function ShowWindow Lib "user32" _
(ByVal hWnd As Long, ByVal nCmdShow As Long) As Long

Private Const SW_MAXIMIZE As Long = 3

Function MaximizeAccess()
MaximizeAccess = ShowWindow(hWndAccessApp, SW_MAXIMIZE)
End Function
Terry

"I'm not dumb. I just have a command of thoroughly useless information." - Calvin, of Calvin and Hobbes
 
Thanks Terry, thats exactly what I needed!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top