Run-time error '3633' - I REALLY NEED HELP PLEASE!!!

SlinkyGirl

New Member
Joined
Aug 16, 2004
Messages
11
Hi there.

I have a MS Excel workbook that contains a VB Macro. The Macro uses DAO/ODBC to retrieve data from a SQL database.

I can run the program some machines.
Some that it works on are win2000 with office 97 and XP Pro with office xp

but this is not a standard , cause it crashes with the following error on a machine running the sames as above.

I am gettign the error from the "CreateWorkspace" function.

This is the error:

Run-time error '3633':

Cannot load DLL: '?????L?'


I have tried unsuccessfully to resolve this by reinstalling and reregistering a number of dlls (eg: MDAC 2.8) - but all to no avail.

Anyone have any ideas what dll (if any) I should be looking for?

The offending code is like this:

Dim wsp As Workspace
Set wsp = CreateWorkspace("", "", "", dbUseODBC)


I'd appreciate any help!!

Thanks
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
THe error that i get is as i have typed below , there is NO reference to what the error is coming form only ?????L

I have tried using DAO 3.51 object library , but then it wont run on the XP machines unless you change it to the lates lib avaliable.

But my big problem is this ....

The one win2000 machine , it wont work at all , no matter what i select

When i go into tools/ references , the Microsoft DAO Object libs are listed there , but the program still gives me the same error.

One of the other win2000 machines doesnt even have any MS DAO libs listed at all.

But the program runs OK on an NT machine using DAO 3.5
I am really stumped.
 
Upvote 0
SlinkyGirl said:
I am really stumped.

Welcome to the world of mess...

I find it strange that one 2000-machine don't have any DAO-library at all.

Anyway, I would consider to use late binding instead of early binding. In that way the code use the available library on different windows-plattforms.

Any particular reason why You use DAO and not ADO?
 
Upvote 0
XL-Dennis said:
Anyway, I would consider to use late binding instead of early binding. In that way the code use the available library on different windows-plattforms.

Any particular reason why You use DAO and not ADO?

What do you mean by Late Binding???


I dont know anyother way. I have never used VB before and just dove in head first.
I do have a background in Java Programming. But i am a little rusty.

My big thing is i am connection to an AS400 server (IBM) using ODBC. I have been following a basic manual distrubuted by my company , but it was very basic.

this is what i am doing.....

Set ws = CreateWorkspace("A", "", "", dbUseODBC)
Set db = ws.OpenDatabase("")
Dim connect As String
connect = db.connect

Set db = ws.OpenDatabase("", , , connect)
sql = "SELECT " & finalSelection & Chr(13) & "" & Chr(10) & "FROM " & lib & "." & file1 & " " & file1 & textfinal1

Set rs = db.OpenRecordset(sql)


the red is where it is boming

i have to use connect as string - to bring up the ODBC Screen where the user selets what data source to connect to.
 
Upvote 0

Forum statistics

Threads
1,214,845
Messages
6,121,902
Members
449,053
Latest member
Guy Boot

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top