Hi,
I inherited some code from a client, and have been having issues with it.
The first line was:
I did a search in VBA help, and couldn't find 'Dir$' but did find 'Dir' I figured this was an instance where VBA had slightly less functionality than VB6/.net has...
Dir$ returns a string, while Dir returns a variant. Unsure if this is an issue or not.
The next line is the line that it blows up on:
Originally, he had:
But, it was hanging up there, so I removed the ( )s.
opath IS a real path AT runtime.
dirStr is a legal path as well.
Any ideas?
Thanks,
Sitko.
I inherited some code from a client, and have been having issues with it.
The first line was:
Code:
If Dir$(opath & "Requests\" & dirStr, vbDirectory) = "" Then
Dir$ returns a string, while Dir returns a variant. Unsure if this is an issue or not.
The next line is the line that it blows up on:
Code:
MkDir opath & "Requests\" & dirStr
Code:
MkDir (opath & "Requests\" & dirStr)
opath IS a real path AT runtime.
dirStr is a legal path as well.
Any ideas?
Thanks,
Sitko.
Comment