I have captured the filename from a hyperlink textbox that has a full c: drive path and filename, into another textbox.
This has resulted in a trailing "#" and I'd like to remove it before applying the FileCopy function to it.
I think I know how to capture a string extract using the Right function:
strFileName = Right(txtTaskD.Value, Len(txtTaskD.Value) - InStrRev(txtTaskD.Value, "\"))
, but have not found sample code out here that shows how to strip any of the trailing characters.
I've tried Right(txtIdrv, 1) - 1, but get a type mismatch error.
This has resulted in a trailing "#" and I'd like to remove it before applying the FileCopy function to it.
I think I know how to capture a string extract using the Right function:
strFileName = Right(txtTaskD.Value, Len(txtTaskD.Value) - InStrRev(txtTaskD.Value, "\"))
, but have not found sample code out here that shows how to strip any of the trailing characters.
I've tried Right(txtIdrv, 1) - 1, but get a type mismatch error.