adambedford
Registered User.
- Local time
- Today, 18:02
- Joined
- Apr 15, 2009
- Messages
- 42
I have this code snippet that extracts on the file name from a string. It does this by removing everything left of the first "\" (working from right to left).
How would I change the code to only remove the CurrentProject.Path so I can store values containing backslashes.
The code is for a photo browse application and I need to be able to reference folders within the database folder.
Thanks, Adam
Code:
Dim I As Integer
For I = Len(FullName) To 1 Step -1
If Mid(FullName, I, 1) = "\" Then
ExtractName = Right(FullName, Len(FullName) - I)
Exit For
End If
Next
How would I change the code to only remove the CurrentProject.Path so I can store values containing backslashes.
The code is for a photo browse application and I need to be able to reference folders within the database folder.
Thanks, Adam