You sure about that, Arvin? Isn't the ShellExecute API intended to open a
file in the appropriate application based on its extension? In other words,
Call fHandleFile("C:\Folder\File.doc", WIN_NORMAL) would open File.doc in
Word.
In this case, I'd forgo the API and simply use
Private Sub cmdPaint_Click()
Shell "C:\Windows\System32\mspaint.exe", vbNormalFocus
End Sub
--
Doug Steele, Microsoft Access MVP
http://www.AccessMVP.com/djsteele
(no e-mails, please!)