Solved

How to resolve the [Run-time error '424', Object requred] when running an Access 2003 application with an mdb type file?

Posted on 2010-11-15
5
595 Views
Last Modified: 2013-11-27
I am developing an Access 2003 application using an MDB type file.

When I run the application on my PC, the application runs successfully.

When I run the application on another user's machine, I get the following error:

Run-time error '424':
Object required

And if I set a breakpoint in the Access application, I get a different run-time errror of '429'.

Do you know how I can resolve this error?

I notice the following in the Tools -> References:   Available References

Visual Basic for Applications
Microsoft Access 11.0 Object Library
OLE Automation
Microosoft DAO 3.6 Obj Library
Microsoft Active X Data Obj 2.5 Library
Microsoft Excel 11.0 Obj Library
Microsoft Office 11.0 Obj Library
Microsoft Outlook 11.0 Obj Library
PDF Creator

And in the application the following 2 dlls are used:
Private Declare Sub Sleep Lib "kernel32.dll" (ByVal dwMilliseconds As Long)
Private Declare Function RegOpenKeyEx Lib "advapi32.dll" _
    Alias "RegOpenKeyExA" (ByVal hKey As Long, ByVal lpSubKey As String, _
    ByVal ulOptions As Long, ByVal samDesired As Long, _
    phkResult As Long) As Long



0
Comment
Question by:zimmer9
5 Comments
 
LVL 77

Expert Comment

by:peter57r
ID: 34138039
We need to see the code around the error line.
0
 
LVL 92

Expert Comment

by:Patrick Matthews
ID: 34138069
On that other computer, when you look up the references, are any listed as missing?

What line of code does the debugger jump to?
0
 
LVL 3

Expert Comment

by:kraiven
ID: 34138093
It looks like the other user has a missing Office library component. You may need to get hold of the required Office interop.
0
 

Author Comment

by:zimmer9
ID: 34138184
The last line that the compiler reaches is as follows:
Set msDir = CreateObject("MSDotNet.COMDirectory.Search")
this statement appears in the following Function:
----------------------------------------------------------------------------
Public Function getUSER(id As String, pswd As String)
On Error GoTo errFunct
Dim msDir
Set msDir = CreateObject("MSDotNet.COMDirectory.Search")   <-- last line before error
...
errFunct:
        If Err.Number <> 0 Then

and the Err.Number generated is 429
0
 
LVL 92

Accepted Solution

by:
Patrick Matthews earned 500 total points
ID: 34138303
Then it would appear that your user does not have that component installed.

(Is it part of .Net Framework or something?)
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many companies are making the switch from Microsoft to Google Apps (https://www.google.com/work/apps/business/). Use this article to learn more about what Google Apps has to offer and to help if you’re planning on migrating to Google Apps. It is …
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question