Link to home
Start Free TrialLog in
Avatar of CafeTica
CafeTica

asked on

Acess VBA: How do I replace reserved characters in a string?

I am using the OutputTo method in Access. I want to strip the reserved characters for naming Windows files in a string and replace them with a string that does not cause an error.

Example: report name to export is "10/19/11 Inventory, Current". I want to rename as "10-19-11_Inventory_Current".

Thanks
Avatar of Rey Obrero (Capricorn1)
Rey Obrero (Capricorn1)
Flag of United States of America image

open the db, and select the Report, then hit F2 and change the name

or right click on the Report and then select Rename
Avatar of CafeTica
CafeTica

ASKER

VBA
ASKER CERTIFIED SOLUTION
Avatar of Rey Obrero (Capricorn1)
Rey Obrero (Capricorn1)
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial