I located this code which was posted by Allen Browne - Microsoft MVP.
SELECT MSysObjects.[Name] FROM MSysObjects IN 'C:\MyFolder\MyFile.mdb' WHERE (MSysObjects.[Type] = 1) AND NOT ((MSysObjects.[Name] Like "~*") OR (MSysObjects.[Name] Like "MSys*")) ORDER BY MSysObjects.[Name];
I’m using the code as the Row Source for a combo box on a MS Access form:
I would like to modify it to be able to get the remote database path 'C:\MyFolder\MyFile.mdb' from a text box “txtSource” on the form. I have not been able to get the syntax correct to accomplish this.
Any help would be appreciated.
Thank you
Accel45
SELECT MSysObjects.[Name] FROM MSysObjects IN 'C:\MyFolder\MyFile.mdb' WHERE (MSysObjects.[Type] = 1) AND NOT ((MSysObjects.[Name] Like "~*") OR (MSysObjects.[Name] Like "MSys*")) ORDER BY MSysObjects.[Name];
I’m using the code as the Row Source for a combo box on a MS Access form:
I would like to modify it to be able to get the remote database path 'C:\MyFolder\MyFile.mdb' from a text box “txtSource” on the form. I have not been able to get the syntax correct to accomplish this.
Any help would be appreciated.
Thank you
Accel45