P
Pendragon
Access03/WinXP
I am using the function IsFileOpen(filename as string) to determine if the
file "c:\datafiles\TextExport.xls" is open before continuing with a process.
If I use the following in my routine, the function performs properly.
If IsFileOpen("c:\datafiles\TestExport.xls") = True Then
etc. etc.
However, if I first assign a string variable to the file and then use that
variable in the function call, I get a ByRef Argument Type Mismatch error
message. Why does this happen and is there a way to resolve it other than
using the literal path and file name (which I am not against using)?
If IsFileOpen(strFileName) = True Then
etc. etc.
FAILS!!
Thanks.
I am using the function IsFileOpen(filename as string) to determine if the
file "c:\datafiles\TextExport.xls" is open before continuing with a process.
If I use the following in my routine, the function performs properly.
If IsFileOpen("c:\datafiles\TestExport.xls") = True Then
etc. etc.
However, if I first assign a string variable to the file and then use that
variable in the function call, I get a ByRef Argument Type Mismatch error
message. Why does this happen and is there a way to resolve it other than
using the literal path and file name (which I am not against using)?
If IsFileOpen(strFileName) = True Then
etc. etc.
FAILS!!
Thanks.