473,503 Members | 1,857 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Runtime error 91

15 New Member
I created this program on Vista using VB 6.0 with Access as the DB. When I created the executable and was trying to use it, on a XP machine, it gave me two issues. The first problem was it was missing the MSADODC.OCX file which I got and I also downloaded VBRun60sp6.exe.

Now I am getting Runtime error 91 and cannot figure out why any ideas?
Jan 3 '08 #1
7 2869
opie
15 New Member
I figured out part of the problem. It seems to only happen on pages that I used an ADODC. I also installed VB 6.0 that I used to create the program and it seem to fix the problem, but I can't install 6.0 on every computer that this program will work on. Any Ideas on a fix?
Jan 3 '08 #2
lotus18
866 Contributor
I figured out part of the problem. It seems to only happen on pages that I used an ADODC. I also installed VB 6.0 that I used to create the program and it seem to fix the problem, but I can't install 6.0 on every computer that this program will work on. Any Ideas on a fix?
Installing a vb6.0 on a client's computer is not really a good practice. Have you tried the Package and Deployment Wizard?

Rey Sean
Jan 4 '08 #3
krafla
3 New Member
I have a similar problem with a program i made with VB 6.0 - the only control I used is MSFlexGrid - the program was developed on an XP machine. and the first time to use it on another machine i got two errors:

1-
Class Not Registered
Looking for Object with CLSID:{0000010-0000-0010-8000-00AA006D2EA4}

this error message appears only at start up and as i click OK the program starts without reading the DB file. and if i save a new entry (create a new row in the DB) it gives me the second error:

2-
Run-time error '91':
Object Variable or With Block variable not set.

Note: I'm using an Access 97 DB associated with the program.
The computer on which i am testing the program has Access 2007. can this be a clue?

I don't know what is missing is in the VB 6.0 or in the Access 97.

a final question, what is the "Package and Deployment Wizard" ??
Jan 4 '08 #4
lotus18
866 Contributor
I have a similar problem with a program i made with VB 6.0 - the only control I used is MSFlexGrid - the program was developed on an XP machine. and the first time to use it on another machine i got two errors:

1-
Class Not Registered
Looking for Object with CLSID:{0000010-0000-0010-8000-00AA006D2EA4}

this error message appears only at start up and as i click OK the program starts without reading the DB file. and if i save a new entry (create a new row in the DB) it gives me the second error:

2-
Run-time error '91':
Object Variable or With Block variable not set.

Note: I'm using an Access 97 DB associated with the program.
The computer on which i am testing the program has Access 2007. can this be a clue?

I don't know what is missing is in the VB 6.0 or in the Access 97.

a final question, what is the "Package and Deployment Wizard" ??
I really have no idea about the two errors because i didn't encountered these. Just standby, other experts here will give you a solution. For Package and Deployment Wizard
is a built-in in vb6 (in visual studio rather) in which you can create setup file (installer) for your program : )

Rey Sean
Jan 4 '08 #5
krafla
3 New Member
Thanx so much Lotus18 i have tried the PDW but it did not work as well, same errors, what i learned is that it is something that has to do with the Access Database Engine - i should include the one associated with the access 97 and let the PDW copy it on the host PC. the only problem now is that, i dunno what it is called (the DLL of the Access Database Engine).

Thank you so much anyway.

as for illasabba, thank you for being not helpful at all, i've read the database part in the tutorial and nothing about MSFlexGrid control so please try to be more specific next time, i will not read a book or 23 chapters each time i wanna debug an error for i have no intention to spend my life reading. try to practice more than read
Jan 5 '08 #6
creative1
274 Contributor
You can create a setup using Project and Deployment Wizard if you have any compilar error in your program. So you need to fix your error first.
Kind Regards
Jan 5 '08 #7
lotus18
866 Contributor
Thanx so much Lotus18 i have tried the PDW but it did not work as well, same errors, what i learned is that it is something that has to do with the Access Database Engine - i should include the one associated with the access 97 and let the PDW copy it on the host PC. the only problem now is that, i dunno what it is called (the DLL of the Access Database Engine).

Thank you so much anyway.

as for illasabba, thank you for being not helpful at all, i've read the database part in the tutorial and nothing about MSFlexGrid control so please try to be more specific next time, i will not read a book or 23 chapters each time i wanna debug an error for i have no intention to spend my life reading. try to practice more than read
Actually I'm not using the Package and Deployment Wizard for quite some time. I used other setup utility tools like the Inno setup, or the installshield setup. I also encountered similar problem like this. I think the problem is not the dll but the path of the database. Have you checked the path? (This is just a guess)

Rey Sean
Jan 6 '08 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

5
15926
by: Bob Bamberg | last post by:
Hello All, I have been trying without luck to get some information on debugging the Runtime Error R6025 - Pure Virtual Function Call. I am working in C++ and have only one class that is derived...
5
15102
by: Nathan Bloom | last post by:
Hi, I have a secured database that runs fine on the computer the database is installed on. I have several workstations with access runtime installed that also need access to the database. ...
2
3559
by: Paul | last post by:
I'm hoping someone can help me with the problem. I have a database where the default value for a date field in a table is =date() This works perfectly in my table and on my form. But when I...
12
3446
by: Markus Ewald | last post by:
I'm just experimenting around with the VisualC++ 2005 Express Edition Beta and found some strange behavior for which I can't seem to find a workaround. What I've done is set up two static library...
0
755
by: Kirk | last post by:
I'm trying to use a Web Service to be a Remoting client of an existing ..NET 2.0 server. But I get the following error when I try to use System.Runtime.Remoting.Channels.Http in my WebService. ...
0
3221
by: zfraile | last post by:
I'm getting this error from the JIT compiler at runtime, but only on my boss' machine, not my development machine. I believe the error is generated from a call to an Excel object, but I can't tell...
0
2152
by: Yelena Varshal via AccessMonster.com | last post by:
Hello We have a shortcut for our MS ACCESS application that uses a /Runtime switch because we may have some users that use Runtime. The application worked fine in Access 2000 and was tested with...
7
8426
by: Norman Diamond | last post by:
A project depends on VC runtime from Visual Studio 2005 SP1, and DotNet Framework 2. Options are set in the setup project properties, so if these two dependencies are not already installed then...
3
5150
by: Jim Armstrong | last post by:
Hello all - This is driving me crazy. I have a table called tblClients - very simple, has the following fields: taxID (PK) ClientName SalesName The main form of my application allows a...
1
4066
by: BL3WC | last post by:
Hi, I'd created a MDE under Access 2003. It is now under testing stage. Some of the users will use Access 2003 runtime and some will use Access 2007 runtime to run this MDE. I installed the...
0
7205
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7093
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7348
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7006
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
5021
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4685
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3175
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1519
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
397
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.