B
Bill Murphy
In my Access app I would like the user to be able to click on the name of an
Excel or Word document in a list and preview it, then close it and return to
Access. Currently I'm using the shellexecute api, in the fHandleFile
function provided by Dev Avish on The Access Web. This works well, but
after opening maximized, the Excel or Word document immediately minimizes to
the user's Windows task bar. In the click event I'm making the Access form
not visible, then making it visible after calling fHandleFile, as shown
below:
dim x as boolean
me.visible = false
x = fHandleFile(Me!FileName, WIN_MAX) ' opens the Excel or Word maximized
using apishellexecute
me.visible = true
Is there a way to prevent the Excel or Word document from minimizing? And,
prevent the Access form from becoming visible until the user has closed the
document being previewed?
Bill
Excel or Word document in a list and preview it, then close it and return to
Access. Currently I'm using the shellexecute api, in the fHandleFile
function provided by Dev Avish on The Access Web. This works well, but
after opening maximized, the Excel or Word document immediately minimizes to
the user's Windows task bar. In the click event I'm making the Access form
not visible, then making it visible after calling fHandleFile, as shown
below:
dim x as boolean
me.visible = false
x = fHandleFile(Me!FileName, WIN_MAX) ' opens the Excel or Word maximized
using apishellexecute
me.visible = true
Is there a way to prevent the Excel or Word document from minimizing? And,
prevent the Access form from becoming visible until the user has closed the
document being previewed?
Bill