RDO working on development PC, not on deployment PC

  • Thread starter Thread starter dman
  • Start date Start date
D

dman

Hi.

Perhaps someone can help me determine what I'm missing here. This little
bit of VBA code works on machines that have VB6 installed on them. When
I take the spreadsheet to another machine is when it fails.

When I debug and mouse over rdoEngine.rdoEnvironments(0)...it says Object
var
or with block var no set. Does early binding(selecting references) not work?

Private Function OpenDataBase(ByVal Userid As String, ByVal Password As
String) As Boolean
On Error GoTo err_routine
Set gcnXXXEnv = rdoEngine.rdoEnvironments(0)
<more removed>
err_routine:
OpenDataBase = False
End Function

Thanks!
 
I do have that reference selected and the DLL exists.

It seems like the rdoEnvironment can be created, but not the rdoEngine.

In my module I have: Public gcnXXXEnv As rdoEnvironment

That seems to be instanced just fine. When I mouse over it in my function,
it is equal to nothing.

Can you think of any other things for me to try? (fyi I am using excel 2003)
 

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

Back
Top