PC Review


Reply
Thread Tools Rate Thread

Access 2007 - Cannot open current database

 
 
Trudie Davies
Guest
Posts: n/a
 
      24th Mar 2009
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
 
Reply With Quote
 
 
 
 
Alex Dybenko
Guest
Posts: n/a
 
      24th Mar 2009
Hi,
make sure that you entered the full path to EPCProcessDatabase.accdb

--
Best regards,
___________
Alex Dybenko (MVP)
http://accessblog.net
http://www.PointLtd.com


"Trudie Davies" <Trudie (E-Mail Removed)> wrote in message
news:005188F0-E0DC-484D-AC3A-(E-Mail Removed)...
> 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


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't open Secured Access 2003 Database in Access 2007 Jeff Byrd Microsoft Access Security 3 13th Jun 2011 07:00 PM
Access 2007 requires password to open Access 2000 database TrainingGuru Microsoft Access Security 0 9th Feb 2010 04:35 AM
Access 2007 requires password to open Access 2000 database TrainingGuru Microsoft Access Security 0 9th Feb 2010 04:33 AM
Access 2007 requires password to open Access 2000 database TrainingGuru Microsoft Access 0 8th Feb 2010 08:16 AM
Open another access database in the current database acc2000user Microsoft Access 1 24th Feb 2004 04:39 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:47 PM.