Hi,
I have some code that creates a file with a filename based on data in a particular field. I'm checking the data to strip out characters that might cause problems with the path/filename - :;\/ etc but have hit a problem checking for "
When I add """ to the end of the case statement Access changes it to """". How do I check for just "?
Here's the code:
Cheers.
I have some code that creates a file with a filename based on data in a particular field. I'm checking the data to strip out characters that might cause problems with the path/filename - :;\/ etc but have hit a problem checking for "
When I add """ to the end of the case statement Access changes it to """". How do I check for just "?
Here's the code:
Code:
For x = 1 To Len(filename)
Select Case Mid(filename, x, 1)
Case "\", "/", "?", "*", ":", ";", " "
Mid(filename, x, 1) = "_"
End Select
Next x
Cheers.