how to address current database

message from =?Utf-8?B?YWxla20=?= on 11 May 2004
Hi,
Set dbs = OpenDatabase("somedatabase.mdb")
dbs.Execute "INSERT INTO ...."

I get error message that database is aleredy opened.
How can I obtain dbs object for already opened database so I can use it's execute method?

Thanks
 
Brendan Reynolds replied to =?Utf-8?B?YWxla20=?= on 11 May 2004
Set dbs = CurrentDb
 

Archived message: how to address current database (MS Access)