robbydogg
Registered User.
- Local time
- Today, 14:24
- Joined
- Jul 15, 2008
- Messages
- 56
Hi,
I've been looking around for a while, but can't find a solution to what i need.
Due to IT restritions I have 3 databases, on of which holds order data, one holds sales data and the other to hold the summary tables and reporting suite.
I'm looking for a bit of code, where i can click a buitton in the reporting database, which will run the queries in the other two, to update their data tables.
So i need db1 to run qry_update, then db2 to run qry_update .
I cannot link the tables and such as the tables those individuals link to slow down the database tremendously (due to network connections etc.
So basically i need code to call a query in a seperate database. I have tried the below, but it doesn;t work
any ideas or solutions would be outstanding!!
thanks in advance
I've been looking around for a while, but can't find a solution to what i need.
Due to IT restritions I have 3 databases, on of which holds order data, one holds sales data and the other to hold the summary tables and reporting suite.
I'm looking for a bit of code, where i can click a buitton in the reporting database, which will run the queries in the other two, to update their data tables.
So i need db1 to run qry_update, then db2 to run qry_update .
I cannot link the tables and such as the tables those individuals link to slow down the database tremendously (due to network connections etc.
So basically i need code to call a query in a seperate database. I have tried the below, but it doesn;t work
Code:
Private Sub Command2_Click()
Dim db As Database
Set db = OpenDatabase("[URL="file://\\server\order"]\\server\order[/URL] data\SEDC.accdb")
db.Execute ("macro to run queries")
Set db = Nothing
End Sub
any ideas or solutions would be outstanding!!
thanks in advance