Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Anyway to eliminate error system messages? 1

Status
Not open for further replies.

nakedbamboo

Technical User
Oct 8, 2003
36
US
I have a button that outputs a query to a saved file by asking the user where they would like to save it. The code is:

DoCmd.OutputTo acOutputQuery, "Search", acFormatXLS, FileName

If the user clicks cancel to saving it, a message comes back saying "Output was canceled." Is there any way to turn these types of messages off?
 
First, take the brackets off of your do while statement.

Your Do...While procedure will not perform if VarYN does not equal 7. Add this line right after the dim check line:
VarYN=7

I tested it on my machine and it worked as expected.

Let me know if you need more assistance.

Eric
 
Eric, you are an angel. That worked perfectly once I also took out the Exit. I put the brackets in because they were like that on an example and I was desparate to try everything. Thank you again for all your help. Pink star to ya. Janet Lyn
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top