I am trying to modify an Access form that allows a user to specify
the information s/he needs from a census-type database.
The form's code builds a SQL statement from the user's request, and
creates from this a record set that is used to populate a new Excel
workbook. The form's code opens the new workbook and writes both a
datasheet and a graph based on the data to it.
The graph appears on the user's screen very briefly and then
disappears as the workbook is closed as soon as all information has
been written to it.
I have tried to put a MsgBox in the Access code immediately before the
statement that closes the Excel Application. This allows the graph [&
an opportunity to switch to the Excel data screen] to remain on screen but
the Excel application is using all the screen space so that the MsgBox
that I want to function as a "return to form execution button"
remains hidden. I can return to the form by clicking its
minimized icon but I'd like that more obtrusive MsgBox button visible
for a user while s/he's seeing the Excel output.
So can I customize the Excel display screen within the Acess form?
thanks, --thelma