C
Co
Hi All,
I'm trying to run an access query using a function I created to tell
the query what path to use.
Public Function QueryVar(ByVal sPath as String) As String
QueryVal = sPath
End Function
QueryVar("H:\Local\Archive.mdb")
Now I run a query saying:
INSERT INTO ArchiveTable ........ IN QueryVar SELECT ........ FROM
ArchiveTmp;
I'm getting an error saying he can't find the path.
What am I doing wrong here?
Marco
I'm trying to run an access query using a function I created to tell
the query what path to use.
Public Function QueryVar(ByVal sPath as String) As String
QueryVal = sPath
End Function
QueryVar("H:\Local\Archive.mdb")
Now I run a query saying:
INSERT INTO ArchiveTable ........ IN QueryVar SELECT ........ FROM
ArchiveTmp;
I'm getting an error saying he can't find the path.
What am I doing wrong here?
Marco