
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