D
Del
I want to use code for the row source of a combo box to fill its list with
tables from a different database. The following code works if I have the
unique path 'C:\MyFolder\MyFile.mdb' included.
SELECT MSysObjects.[Name]
FROM MSysObjects IN 'C:\MyFolder\MyFile.mdb'
WHERE (MSysObjects.[Type] = 1)
AND NOT ((MSysObjects.[Name] Like "MSys*"))
ORDER BY MSysObjects.[Name];
But when I replace the unique path with the variable strPath, Access sees
the path with a back slash and the variable on the end. I get the following
message: Could not find the file 'C:\MyFolder\MyFile.mdb\strPath'
What is the correct syntax to replace the unique path with a variable?
tables from a different database. The following code works if I have the
unique path 'C:\MyFolder\MyFile.mdb' included.
SELECT MSysObjects.[Name]
FROM MSysObjects IN 'C:\MyFolder\MyFile.mdb'
WHERE (MSysObjects.[Type] = 1)
AND NOT ((MSysObjects.[Name] Like "MSys*"))
ORDER BY MSysObjects.[Name];
But when I replace the unique path with the variable strPath, Access sees
the path with a back slash and the variable on the end. I get the following
message: Could not find the file 'C:\MyFolder\MyFile.mdb\strPath'
What is the correct syntax to replace the unique path with a variable?