VB 5.0 - Error:91 Object Variable Or With Block Variable Not Set 
Author Message
 VB 5.0 - Error:91 Object Variable Or With Block Variable Not Set

I hope someone can help me with this problem :

I am an application developer using Visual Basic 5.0 and MS Access 97. I
have a problem which seems to be very inconsistent and occurs when certain
users attempt to run my application. They get the typical Splash screen, the
"main" form paints and then they get the following error message :

Error:91 Object Variable Or With Block Variable Not Set

and the program dies.

I realize that without looking at the code it is very difficult to diagnose
the problem; however, I was hoping somebody may have a suggestion. This
problem does not occur for every user; in fact, it happens for only a small
percentage of users but there does not seem to any common explanation. I
have installed the program myself on as many systems as I can gain access to
and I have never been able to duplicate the problem. Please help...

Thank you,
Shaun Walker



Sat, 18 Nov 2000 03:00:00 GMT  
 VB 5.0 - Error:91 Object Variable Or With Block Variable Not Set

Verify that on the systems that are crashing, that you have all the necessary
dll's on the machine.  This sometimes occurs because a machine is missing a
class and cannot load it.

Quote:

> I hope someone can help me with this problem :

> I am an application developer using Visual Basic 5.0 and MS Access 97. I
> have a problem which seems to be very inconsistent and occurs when certain
> users attempt to run my application. They get the typical Splash screen, the
> "main" form paints and then they get the following error message :

> Error:91 Object Variable Or With Block Variable Not Set

> and the program dies.

> I realize that without looking at the code it is very difficult to diagnose
> the problem; however, I was hoping somebody may have a suggestion. This
> problem does not occur for every user; in fact, it happens for only a small
> percentage of users but there does not seem to any common explanation. I
> have installed the program myself on as many systems as I can gain access to
> and I have never been able to duplicate the problem. Please help...

> Thank you,
> Shaun Walker

--
Michael Fariborz
Software Engineer
IBM - GGI
Houston, TX


Sat, 18 Nov 2000 03:00:00 GMT  
 VB 5.0 - Error:91 Object Variable Or With Block Variable Not Set

This error occurs when there is an object variable that is not being set
before it is referenced.

I have developed two VB 5 add-ins that can be used to find problems
like this. VB DocuMentor can be used to insert error handlers.
VB Builder can create a line numbered version of your program.
When the error occurs at the user's site, an error form can be
displayed which shows you the module, procedure, and line number
of the problem.

There is more information at: http://www.gridlinx.com

...
George
r

Quote:

> I hope someone can help me with this problem :

> I am an application developer using Visual Basic 5.0 and MS Access 97. I
> have a problem which seems to be very inconsistent and occurs when certain
> users attempt to run my application. They get the typical Splash screen, the
> "main" form paints and then they get the following error message :

> Error:91 Object Variable Or With Block Variable Not Set

> and the program dies.

> I realize that without looking at the code it is very difficult to diagnose
> the problem; however, I was hoping somebody may have a suggestion. This
> problem does not occur for every user; in fact, it happens for only a small
> percentage of users but there does not seem to any common explanation. I
> have installed the program myself on as many systems as I can gain access to
> and I have never been able to duplicate the problem. Please help...

> Thank you,
> Shaun Walker



Sat, 18 Nov 2000 03:00:00 GMT  
 VB 5.0 - Error:91 Object Variable Or With Block Variable Not Set

Hi Shaun,

I've encountered similar behaviour when trying to use transactions
that run over more than one form (form loading/unloading etc.).

Since using transactions without "form playing", my problems are
solved...

Good luck,

Guido.



Quote:
>I hope someone can help me with this problem :

>I am an application developer using Visual Basic 5.0 and MS Access 97. I
>have a problem which seems to be very inconsistent and occurs when certain
>users attempt to run my application. They get the typical Splash screen, the
>"main" form paints and then they get the following error message :

>Error:91 Object Variable Or With Block Variable Not Set

>and the program dies.

>I realize that without looking at the code it is very difficult to diagnose
>the problem; however, I was hoping somebody may have a suggestion. This
>problem does not occur for every user; in fact, it happens for only a small
>percentage of users but there does not seem to any common explanation. I
>have installed the program myself on as many systems as I can gain access to
>and I have never been able to duplicate the problem. Please help...

>Thank you,
>Shaun Walker



Sat, 18 Nov 2000 03:00:00 GMT  
 VB 5.0 - Error:91 Object Variable Or With Block Variable Not Set

Shaun

I has this problem an some machines and not others. It turned out to be the
DAO dlls were not registered correctly. The object it was referring to was
when I tryed to open the database on the apps startup sub main. Failing
theis try to put in siome message boxes and run the exe on the bad machine.
That way u can find out where the problem is occuring

Hope this helps.



Sun, 19 Nov 2000 03:00:00 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. Object variable or With block variable not set (Error 91)

2. error 91 Object Variable o on with block variable is not set

3. Runtime error 91/Object variable or With block variable not set problems

4. runtime error: 91 Object variable or with block variable not set

5. Object variable or With block variable not set (Error 91) Please Help

6. Run Time Error 91: Object variable or With Block variable not set

7. Object variable or With block variable not set (Error 91)

8. Error 91 Object variable or With-Block, variable not set

9. Error 91-Object or block with variable not set

10. error 91 - object or block with variable not set

11. Debugging COM+ Componets -- Runtime error 91- Object variable or with block not set

12. Error 91 - object or block width variable not set

 

 
Powered by phpBB® Forum Software