slicendice
Programmer
I have a database that I'm using to extract/generate data that includes a whole bunch of tables, queries, VBA, etc and the output of this is a set of data that will be used by a customer. The data that is extracted has to be in a separate database so that it only contains the data and nothing else.
I can do this OK using:
That's all well and good, but it hard codes the path of the other database, so I was wondering if it's in any way possible to use some kind of variable to hold the actual path of the database? So something like:
I've had a poke around and the feeling I have is that it's not possible...which isn't the end of the world, I was just interested to see if it was possible or not.
Thanks...
I can do this OK using:
SQL:
INSERT INTO table_name IN 'C:\some_path\other_database.accdb'...
That's all well and good, but it hard codes the path of the other database, so I was wondering if it's in any way possible to use some kind of variable to hold the actual path of the database? So something like:
SQL:
INSERT INTO table_name IN db_path & '\other_database.accdb'...
I've had a poke around and the feeling I have is that it's not possible...which isn't the end of the world, I was just interested to see if it was possible or not.
Thanks...