G
Guest
I'm using Access 97 and trying to use AppActivate "Microsoft Access" to
return focus to Access from Excel.
I'm not getting consistent behavior - sometimes it runs and other times I
get the message "An Error occurred - Invalid procedure call or argument".
When it does run without giving me the Invalid proc error it still isn't
quite the way I want it as it does not return to to Access to display the
message - I have to manually select Access from my task bar in order to see
the message, hit ok and continue. I use this same App Activate "Microsoft
Access" code at the end of the running of the 5 worksheets and display a done
message. The only difference is that in this case the done message is
displayed via a form vs msgbox.
My app outputs query results to Excel and I'm trying to handle error
messages in the event that there are no rows to output or the Excel worksheet
is already opened. Once Excel is opened it displays the applicable worksheet
then outputs another (up to 5 worksheets when the user hits applicable
button).
I've thought about changing all my messages to use a form but I really think
it should be easier than that. Any ideas on how to fix this problem would be
greatly appreciated. Thanks.
return focus to Access from Excel.
I'm not getting consistent behavior - sometimes it runs and other times I
get the message "An Error occurred - Invalid procedure call or argument".
When it does run without giving me the Invalid proc error it still isn't
quite the way I want it as it does not return to to Access to display the
message - I have to manually select Access from my task bar in order to see
the message, hit ok and continue. I use this same App Activate "Microsoft
Access" code at the end of the running of the 5 worksheets and display a done
message. The only difference is that in this case the done message is
displayed via a form vs msgbox.
My app outputs query results to Excel and I'm trying to handle error
messages in the event that there are no rows to output or the Excel worksheet
is already opened. Once Excel is opened it displays the applicable worksheet
then outputs another (up to 5 worksheets when the user hits applicable
button).
I've thought about changing all my messages to use a form but I really think
it should be easier than that. Any ideas on how to fix this problem would be
greatly appreciated. Thanks.