Microsoft
Software
Hardware
Network
Question : How to create a file that has "\" or "&" in the file name?
I have a file name: "Black & White \ Red "
So got error in below statement:
DoCmd.OutputTo acReport, "rptTemplate, ..., "Black & White \ Red " & ".xls", False
It's because of "\" in the file name, how to create the file anyway? Also, how to remove the white space from the end in a string like get "Red" instead of "Red "? Thanks
Answer : How to create a file that has "\" or "&" in the file name?
Maybe:
DoCmd.OutputTo acReport, "rptTemplate, ..., Replace("Black & White \ Red " & ".xls", "\",""), False
mx
Random Solutions
Windows Server 2008 File Server inaccessible from clients
List box in inputbox?
Setup Exchange 2010 to Receive Mail
MS Access: sending table or reports (in Excel or text forms) via email
How to subscript and superscript on mySQL?
SQL 2005 - Create failed for database 'test'. (Microsoft.SqlServer.smo)
Client-only rules in Outlook 2003
How Can I forward email from a mailbox to a distribution list in exchange 2003 using a forwarder?
SSIS insert primary key - there must be a way
Single quotation in strVariable causes error 2147217900