Solved

App not working on users PC

Posted on 2000-05-03
11
157 Views
Last Modified: 2010-05-02
I am working on an application that allows that brings ups a form to select a winner form a SQL Server table.  When I click on the menu option for this form I get the following error messages-- "ActiveX component can't create object" and "Run-time error '91': Oject variable or with block variable not set".  This works absolutely fine in from my machine in VB, but I get these messages when I create an install the application on to the users PC.
I've been reveiwing my code and everything looks fine.

Can someone please help.
Dave
0
Comment
Question by:KOCUBA
  • 4
  • 3
  • 2
  • +2
11 Comments
 
LVL 1

Expert Comment

by:pauljk
ID: 2773941
Kocuba...

It sounds like you are not copying and registering the OCX's or DLL's that are required by your application to run.  Your computer has the entire development environment and these files already reside there.

0
 

Author Comment

by:KOCUBA
ID: 2773981
I have no dll's.  So if my ocx files, which are included in the setup, are not registering how do I get them registered.

0
 
LVL 1

Expert Comment

by:pauljk
ID: 2774000
Well, the install should register them in the install...  If you used the package and deployment wizard from Visual Studio, you should check the Setup.lst file to see if the files listed there match the files that you have referenced for your project.
0
 
LVL 32

Expert Comment

by:bhess1
ID: 2774015
Are you using ADO to access the data?  It's possible that the user doesn't have that installed.  See this reference at Microsoft:

HOWTO:  Distribute ADO with the VB5 application setup wizard

http://support.microsoft.com/support/kb/articles/Q184/2/65.ASP?LN=EN-US&SD=gn&FR=0
0
 
LVL 1

Expert Comment

by:schrmar
ID: 2774026
goto a dos prompt and goto the winsys directory.  run regsvr32 with the argument of your ocx name.  Such as
C:\winnt\system32\regsvr32 msadodc.ocx.

Is this on vb5 or vb6? and what version of ado? 2.0 or 2.1.  If 2.0 I would suggest using 2.1.  There seems to be a compatablity issue with 2.0 and 2.1

0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:KOCUBA
ID: 2774166
I have no dll's.  So if my ocx files, which are included in the setup, are not registering how do I get them registered.

0
 
LVL 1

Expert Comment

by:pauljk
ID: 2774184
See schmar's regsvr32 comments.
0
 
LVL 2

Expert Comment

by:bhamilto
ID: 2774436
You can also get the first error (the second is probably related) if you have old versions of ocx/dll's on the end-user machine.  Don't just check if these are registered, also check version info and compare to the development machine.
0
 

Author Comment

by:KOCUBA
ID: 2774510
bhess1,

Please post your answer.  That is what finally worked.

Everyone thank you for your help.

0
 
LVL 32

Accepted Solution

by:
bhess1 earned 100 total points
ID: 2774572
You can accept a comment as an answer.  On the green bar at the top of each comment is a button labeled 'accept comment as answer'.  Just click that button on the comment that answered your problem to accept it.
0
 

Author Comment

by:KOCUBA
ID: 2774643
Sorry. I did not know that that had changed.

Thanks Again
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VB6 / DAO 3.6 / run time error: Couldn't find installable ISAM 7 73
How to debug this code 7 56
Best way to parse out a json string in VB6? 10 109
Problem to With line 4 39
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

914 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now