Error: 3033 when trying to OpenDatabase using DAO

Status
Not open for further replies.
A

am12

Hi,

I amuncesfull trying to open an Access 2003 database using DAO 3.6 within

Outlook 2003 VBA. The error.description says:

You do not have the necessary permissions to use the

<.../name/mdb> object. Have your system administrator or the person who

created this object establish the appropriate permissions for you.

The err.Number is 3033

I have tried several options such as:

1-mdb with and without admin password

2-mdb with specific mdw file while setting the filepathname.mdw to

DBEngine.SystemDB

Any idea what I should look for?

Follows a stripped down version of the code with no password set for admin:

Private Sub cmdImport_Click_Test()

On Error GoTo ErrorHandler

Dim dbe As DAO.DBEngine

Dim wks As DAO.Workspace

Dim dbs As DAO.Database

Dim strAccessPath As String

strAccessPath = "C:\tmp\test.mdb"

Set dbe = DAO.DBEngine

Set wks = dbe.Workspaces(0)

Set dbs = wks.OpenDatabase("C:\tmp\test.mdb", False, False)

ErrorHandlerExit:

Exit Sub

ErrorHandler:

MsgBox "Error No: " & Err.Number & "; Description: " & Err.Description

Resume ErrorHandlerExit

End Sub
 

Michael Bauer

Senior Member
Outlook version
Outlook 2010 32 bit
Email Account
Exchange Server
You should know whether the db is protected by a password or an *.mdw file.

If the latter, look for your permissions for the object you're trying to

access. However, the Outlook newsgroup is not the place to ask for these

Access or Jet specific questions.

Best regards

Michael Bauer

Am Sat, 16 May 2009 19:42:01 -0700 schrieb jmv:


> Hi,

> I amuncesfull trying to open an Access 2003 database using DAO 3.6 within
> Outlook 2003 VBA. The error.description says:
> You do not have the necessary permissions to use the
> <.../name/mdb> object. Have your system administrator or the person who
> created this object establish the appropriate permissions for you.
> The err.Number is 3033

> I have tried several options such as:
> 1-mdb with and without admin password
> 2-mdb with specific mdw file while setting the filepathname.mdw to
> DBEngine.SystemDB

> Any idea what I should look for?

> Follows a stripped down version of the code with no password set for


admin:
> Private Sub cmdImport_Click_Test()

> On Error GoTo ErrorHandler

> Dim dbe As DAO.DBEngine
> Dim wks As DAO.Workspace
> Dim dbs As DAO.Database
> Dim strAccessPath As String

> strAccessPath = "C:\tmp\test.mdb"

> Set dbe = DAO.DBEngine
> Set wks = dbe.Workspaces(0)
> Set dbs = wks.OpenDatabase("C:\tmp\test.mdb", False, False)

> ErrorHandlerExit:
> Exit Sub

> ErrorHandler:
> MsgBox "Error No: " & Err.Number & "; Description: " & Err.Description
> Resume ErrorHandlerExit

> End Sub
 
A

am12

Hello Michael,

Thanks for answering. What newsgroups should my request be posted to?

I have tried opening the db in 3 different configurations:

1-With admin password unset

2-With admin password set

3-Using a specific .mwd file.

In all of the above scenarios I am able to open the mdb with Access

but not with DAO. Any ideas?

Thanks

"Michael Bauer " wrote:



> You should know whether the db is protected by a password or an *.mdw file.
> If the latter, look for your permissions for the object you're trying to
> access. However, the Outlook newsgroup is not the place to ask for these
> Access or Jet specific questions.

> > Best regards
> Michael Bauer

> > >

> Am Sat, 16 May 2009 19:42:01 -0700 schrieb jmv:
>
> > Hi,
> > I amuncesfull trying to open an Access 2003 database using DAO 3.6 within
> > Outlook 2003 VBA. The error.description says:
> > You do not have the necessary permissions to use the
> > <.../name/mdb> object. Have your system administrator or the person who
> > created this object establish the appropriate permissions for you.
> > The err.Number is 3033
> > I have tried several options such as:
> > 1-mdb with and without admin password
> > 2-mdb with specific mdw file while setting the filepathname.mdw to
> > DBEngine.SystemDB
> > Any idea what I should look for?
> > Follows a stripped down version of the code with no password set for

> admin:
> > Private Sub cmdImport_Click_Test()
> > On Error GoTo ErrorHandler
> > Dim dbe As DAO.DBEngine
> > Dim wks As DAO.Workspace
> > Dim dbs As DAO.Database
> > Dim strAccessPath As String
> > strAccessPath = "C:\tmp\test.mdb"
> > Set dbe = DAO.DBEngine
> > Set wks = dbe.Workspaces(0)
> > Set dbs = wks.OpenDatabase("C:\tmp\test.mdb", False, False)
> > ErrorHandlerExit:
> > Exit Sub
> > ErrorHandler:
> > MsgBox "Error No: " & Err.Number & "; Description: " & Err.Description
> > Resume ErrorHandlerExit
> > End Sub

>
 

Michael Bauer

Senior Member
Outlook version
Outlook 2010 32 bit
Email Account
Exchange Server
This is not my area, but I think the db is protected by an mdw file. So, if

you're able to open the db with a specific mdw set via Access, can you also

access the table or whatever then? If so, your code should be wrong; if not,

you don't have the permission to access the object. If the latter, set the

appropriate permission, or ask the db admin to do that for you.

BTW, the code you have shown doesn't specifiy an mdw file.

Best regards

Michael Bauer

Am Sun, 17 May 2009 10:00:11 -0700 schrieb jmv:


> Hello Michael,

> Thanks for answering. What newsgroups should my request be posted to?
> I have tried opening the db in 3 different configurations:
> 1-With admin password unset
> 2-With admin password set
> 3-Using a specific .mwd file.

> In all of the above scenarios I am able to open the mdb with Access
> but not with DAO. Any ideas?

> Thanks
> "Michael Bauer " wrote:
>
>

>
>> You should know whether the db is protected by a password or an *.mdw


file.
> > If the latter, look for your permissions for the object you're trying to
> > access. However, the Outlook newsgroup is not the place to ask for these
> > Access or Jet specific questions.
>

>> > > Best regards
> > Michael Bauer
>

>> >> >>

>

>
>> Am Sat, 16 May 2009 19:42:01 -0700 schrieb jmv:
> >
> >> Hi,
> >
>>> I amuncesfull trying to open an Access 2003 database using DAO 3.6


within
> >> Outlook 2003 VBA. The error.description says:
> >> You do not have the necessary permissions to use the
> >> <.../name/mdb> object. Have your system administrator or the person who
> >> created this object establish the appropriate permissions for you.
> >> The err.Number is 3033
> >
>>> I have tried several options such as:
> >> 1-mdb with and without admin password
> >> 2-mdb with specific mdw file while setting the filepathname.mdw to
> >> DBEngine.SystemDB
> >
>>> Any idea what I should look for?
> >
>>> Follows a stripped down version of the code with no password set for

> > admin:
> >> Private Sub cmdImport_Click_Test()
> >
>>> On Error GoTo ErrorHandler
> >
>>> Dim dbe As DAO.DBEngine
> >> Dim wks As DAO.Workspace
> >> Dim dbs As DAO.Database
> >> Dim strAccessPath As String
> >
>>> strAccessPath = "C:\tmp\test.mdb"
> >
>>> Set dbe = DAO.DBEngine
> >> Set wks = dbe.Workspaces(0)
> >> Set dbs = wks.OpenDatabase("C:\tmp\test.mdb", False, False)
> >
>>> ErrorHandlerExit:
> >> Exit Sub
> >
>>> ErrorHandler:
> >> MsgBox "Error No: " & Err.Number & "; Description: " &


Err.Description
> >> Resume ErrorHandlerExit
> >
>>> End Sub

> >
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
U Outlook 2019 VBA run-time error 424 Outlook VBA and Custom Forms 2
V Outlook error 500 Using Outlook 2
O Comma Separated Values.ADR and A file error has occurred in the translator Using Outlook 5
D We're sorry but outlook has run into an error Using Outlook 6
D Outlook 2016 Outlook Error Msg "The operation cannot be performed ..." How to Stop it Using Outlook 3
P Outlook 2013 All imported Mail Rules in error when imported into new profile Using Outlook 5
H Outlook 2019 Certificate error Using Outlook 2
V Date and/or time error in Outlook Form Outlook VBA and Custom Forms 0
A Run-time error '430' on certain emails when trying to set "Outlook.mailitem" as "ActiveExplorer.Selection.Item" Outlook VBA and Custom Forms 2
E Complite error on SaveAsFile method Outlook VBA and Custom Forms 2
I Error saving screenshots in a custom form in outlook 2016, outlook 365 - ok in outlook 2013, outlook 2010 Outlook VBA and Custom Forms 5
D Outlook VBA error extracting property data from GetRules collection Outlook VBA and Custom Forms 10
A Unable to save recurring Meeting to Documents folder due to error Using Outlook 2
M Compile error: User-defined type not defined Outlook VBA and Custom Forms 0
R Error when trying to forward current email item Outlook VBA and Custom Forms 7
M ERROR: None of your email accounts could send to this recipient Using Outlook 2
J OLADD.FAE Error When Exporting Contacts Using Outlook 6
C Send/receive error 80040119 Using Outlook 2
W error with the permission for the file Outlook VBA and Custom Forms 0
L Outlook 2019 MAC sync error after working for 4 hours Using Outlook 1
A Run time error 424. object required in outlook 2013 Outlook VBA and Custom Forms 10
M error code 0x8DE00006 Using Outlook 1
M Desktop Version Of Outlook Generating Error Using Outlook 4
M Send/Receive error 0x800CCC0F Using Outlook 0
T Outlook 2016 CSV Translator Import Error Using Outlook 6
ManaarZakaria I'm afraid of this issue, cause of strange error Exchange Server Administration 2
P Suppress dialog box on email check error? Using Outlook 5
vodkasoda Object could not be found Error in Outlook 2007 Outlook VBA and Custom Forms 5
S VBA Macro - Run-time error '424': object required - Help Please Outlook VBA and Custom Forms 3
avant-guvnor Outlook.Application now produces error Outlook VBA and Custom Forms 5
P Run Time Error 91 when linking contact to task in VBA Outlook VBA and Custom Forms 1
N Error 0x80090326 when trying to setup IMAP account on Outlook.com Using Outlook.com accounts in Outlook 1
N Saving And Deleting Outlook Attachments with Unknown Error Message Outlook VBA and Custom Forms 1
Dennis Gaudenzi Your setup couldn't be started because of an unexpected error (mapi 0x80040604) Using Outlook 14
M Outlook 2013 fails to start -- missing WindowsCodecs.dll error Using Outlook 3
Steshelter ICloud Unexpected Error Using Outlook 5
Rupert Dragwater "there was an error reading this theme" Using Outlook 3
A Error: The name cannot be matched to a name in the address list Using Outlook.com accounts in Outlook 0
S Error using AddressEntry.GetContact - need help Outlook VBA and Custom Forms 2
J Outlook - 2013 - Error msg when copying folders from Online Archives to another user's mailbox Using Outlook 0
Vijay Error in rule- Run a script Using Outlook 1
B Automation error running VB macro code Outlook VBA and Custom Forms 8
J Object Variable or With Block Not Set Error in Outlook 2016 and not Outlook 2013 Outlook VBA and Custom Forms 3
R Macro to copy email to excel - Runtime Error 91 Object Variable Not Set Outlook VBA and Custom Forms 11
Diane Poremsky The Attachment Size Exceeds the Allowable Limit Error Using Outlook 0
Diane Poremsky RMS Error: System clock has been tampered with Using Outlook 0
Diane Poremsky Error Opening Outlook and Control Panel's Mail Applet Using Outlook 0
K Error: Paper Size Invalid Using Outlook 0
M Error 0x 800CCC92 Using Outlook 0
Diane Poremsky Cannot start Microsoft Office Outlook Error Message Using Outlook 0

Similar threads

Top