Open Database, run a query, close the database

papasmurfuo9

Registered User.
Local time
Today, 10:20
Joined
May 28, 2014
Messages
69
Hi

i have a database that runs updates from within itself.

what i need is, this database to then open a another database
run a update query, then close it

thanks in advance
 
Can you link the tables in that DB to this? If so then you do not have to worry about opening and closing, you can simply run an update Query from the normal DB.
 
thanks for the reply

there is too many tables etc

if possible i would prefer just to open and run the query

thanks
 
Is the update only in the target database or does it require data from your current db as well?
 
sorted with

Dim ObjAccess As New Access.Application

With ObjAccess
.OpenCurrentDatabase ("filepath")
.Visible = True
.DoCmd.OpenQuery "Qry_"
.Quit
End With
 

Users who are viewing this thread

Back
Top Bottom