Error loading DLL

C

Connie

Hello
Below is code behind a form that allows users to select from a list of names
which creates a mailing label list. When the form is opened, the following
error message appears "Compile Error. Error in Loading DLL". When I debug,
the word "Connection" is highlighted.

Two of the references in the database are "ActiveX Data Objects 2.7
Library", and "ADO ext. 2.7 for DLL and Security". At one time, the system
it was developed on had 2.8. We have had problems with these references
before when installing the software on a client pc if they have not upgraded
their systems (no problem really because we select the appropriate references
at the time). However, big problem now on the developing computer. The
above noted form no longer works. The developing computer has WinXP Pro but
has not been upgraded to SP2 (Was installed then uninstalled....too many
problems). Wondering if this could have caused my current DLL problem.

Any help appreciated,
Connie


Code behind form:

Private Sub Form_Load()

Dim rstTblRecordsChosen As New ADODB.Recordset
Dim intCurrRecord As Integer

'-- Open the table containing previously selected choices
rstTblRecordsChosen.Open "TblRecordsChosen", _
CurrentProject.Connection, adOpenDynamic

'-- Loop through the selected choices
Do Until rstTblRecordsChosen.EOF

'-- For each of the items in the listbox, see if it matches the
'-- current Record name.
For intCurrRecord = 0 To Me!lboRecordsToChoose.ListCount - 1

'-- If there is a match, mark it in the list box as selected
If rstTblRecordsChosen!strRecord = _
Me!lboRecordsToChoose.ItemData(intCurrRecord) Then
Me!lboRecordsToChoose.Selected(intCurrRecord) = True
Exit For
End If

Next intCurrRecord

rstTblRecordsChosen.MoveNext

Loop

End Sub
 
6

'69 Camaro

Hi, Connie.
The developing computer has WinXP Pro but
has not been upgraded to SP2 (Was installed then uninstalled....too many
problems). Wondering if this could have caused my current DLL problem.

Probably. Make sure that the following service packs are installed on this
computer: MS Office <insert your version here> SP-<insert the highest
version published here>, MS Jet 4.0 SP-8 or higher, and MDAC 2.8 SP-1 or
higher. If the computer doesn't have all of these service packs installed,
then make sure that you (or someone with the authorization) logs into the
computer as the Windows Administrator and loads each of these service packs.
If you need the service packs, then please see the following Web pages:

See this Web page for the latest service pack for Jet 4.0:

http://support.microsoft.com/?id=239114

See this Web page for the latest MDAC downloads and patches available:

http://msdn.microsoft.com/data/downloads/updates/default.aspx#MDACDownloads

If you need to check the files for the current MDAC version on your
computer, then please see this Web page for the MDAC checker:

http://www.microsoft.com/downloads/...f6-4a21-4b43-bf53-14332ef092c9&displaylang=en

(Since you don't mention what version of Access you are using, I can't
provide the link for the appropriate service pack for Office.)

Once each of these service packs is loaded, then while still logged in as
the Windows Administrator, ensure that the DAO and MSADO libraries are
properly registered. To do so, click the Windows Start button, and then
click Run. If your DAO and MSADO libraries are installed in the default
directories (otherwise, just replace the path with your own), then use the
following command for the DAO library (this is all one line):

Regsvr32 "C:\Program Files\Common Files\Microsoft Shared\DAO\DAO360.DLL"

Use the following command for the MSADO library (this is all one line):

Regsvr32 "C:\Program Files\Common Files\system\ado\Msado15.dll"

HTH.

Gunny

See http://www.QBuilt.com for all your database needs.
See http://www.Access.QBuilt.com for Microsoft Access tips.

(Please remove ZERO_SPAM from my reply E-mail address, so that a message
will be forwarded to me.)

- - -
When you see correct answers to your question posted in Microsoft's Online
Community, please sign in to the Community and mark these posts as "Answers,"
so that all may benefit by filtering on "Answered questions" and quickly
finding the right answers to similar questions. Remember that the first and
best answers are often given to those who have a history of rewarding the
contributors who have taken the time to answer questions correctly.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top