Hi,
We have an Access database set up, with functioning queries and all works fine. We run a query that prompts the user to insert Start & End dates and it returns the required data.
We would like to run the same query via Excel, however when we try it, it fails at the data prompts. If we put a static date instead of the prompts it works fine.
Tried using VBA to get it to run, with a command button, but can't get the syntax to work. It keeps failing at the connection string.
Can anyone please advise on the correct syntax to use, using VBA, to connect to an Access database from Excel.
TIA
Mj
We have an Access database set up, with functioning queries and all works fine. We run a query that prompts the user to insert Start & End dates and it returns the required data.
We would like to run the same query via Excel, however when we try it, it fails at the data prompts. If we put a static date instead of the prompts it works fine.
Tried using VBA to get it to run, with a command button, but can't get the syntax to work. It keeps failing at the connection string.
Can anyone please advise on the correct syntax to use, using VBA, to connect to an Access database from Excel.
TIA
Mj