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!

Using FindWindow in user.exe to open MS Access

Status
Not open for further replies.

pullingteeth

Programmer
Sep 26, 2003
128
0
0
US
Hello, I'm attempting to open MS Access using some EXTRA Basic (a macro language) commands:


Declare Function ShowWindow Lib "User" (ByVal hWnd As Integer, ByVal nCmdShow As Integer) As Integer

Declare Function FindWindow Lib "User" (ByVal szClass$, ByVal lpsz As Long) as Integer


...


Hwnd% = FindWindow("hWndAccessApp",0)
x% = ShowWindow(Hwnd%,1)



I'm unsure of two things: should Lib be "User" or "User.exe", and what is the name of MS Access's window?

Thanks
 
Answer to the first question
Lib "USER32.DLL
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top