Access 2007 - Cannot open current database

  • Thread starter Thread starter Trudie Davies
  • Start date Start date
T

Trudie Davies

Hi

I am trying to reference the current database and copied the following code
from the help file:

Dim dbsNorthwind As Database
Dim qdfTemp As QueryDef
Dim rstEmployees As Recordset

Set dbsNorthwind = OpenDatabase("Northwind.mdb")
Set qdfTemp = dbsNorthwind.CreateQueryDef("")


When I try and add my database name which is "EPCProcessDatabase.accdb" I
get the run time error 3024 cannot find database. Can anyone help?

Thanks
 
Back
Top