Prevent CANCEL option in query variable msgbox???

R

Rebecca

I have a query that prompts for 2 variables. The msgbox
that does this allows CANCEL to be hit.
The query results are sent to an Excel spreadsheet via a
macro containing the 'TransferSpreadsheet' command.
If a user hits CANCEL, my spreadsheet gets blanked out.

Is there any way to prevent the msgbox having the CANCEL
option (remember I dont display this myself, the query
does it automatically). Or if this is not posssible, how
do I prevent the 'TransferSpreadsheet' command in my macro
from writing out a blank spreadsheet?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top