Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Runtime Error 91: Object variable or With Block Variable not set

98 views
Skip to first unread message

Karen

unread,
May 16, 2002, 4:14:09 PM5/16/02
to
Hi,

I have a VB 6.0 appl, that creates a commodities list and
shows the list in crystal report viewer. When the user
select the print button in the crystal report viewer they
get the error:

Runtime Error 91: Object variable or With Block Variable
not set


Any ideas? I haven't been able to find anything.

Thanks for any help.

Karen

Grinder

unread,
May 16, 2002, 4:19:27 PM5/16/02
to
> I have a VB 6.0 appl, that creates a commodities list and
> shows the list in crystal report viewer. When the user
> select the print button in the crystal report viewer they
> get the error:
>
> Runtime Error 91: Object variable or With Block Variable
> not set

This happens why your try something like:

sCaption = SomeObject.SomeProperty

...where SomeObject is an object type that has not been instanced.

> Any ideas? I haven't been able to find anything.

You really only have one option -- debug your application. Find the line on
which that runtime error is being generated, and you'll most likely find the
reason why it's happening.

Karen

unread,
May 16, 2002, 4:33:45 PM5/16/02
to
Thanks...I forgot to say that this error only occurs on
the customer's machine. I don't get the error on my
machine. The difference is that I have all the
development tools on my machine and the customer doesn't.
I'll keep working on it.

>-----Original Message-----
>> I have a VB 6.0 appl, that creates a commodities list
and
>> shows the list in crystal report viewer. When the user
>> select the print button in the crystal report viewer
they
>> get the error:
>>
>> Runtime Error 91: Object variable or With Block Variable
>> not set
>
>This happens why your try something like:
>
>sCaption = SomeObject.SomeProperty
>
>....where SomeObject is an object type that has not been
instanced.
>
>> Any ideas? I haven't been able to find anything.
>
>You really only have one option -- debug your
application. Find the line on
>which that runtime error is being generated, and you'll
most likely find the
>reason why it's happening.
>
>
>
>.
>

dnagel

unread,
May 16, 2002, 10:41:23 PM5/16/02
to
Is this an MDAC/ADO or DAO application?

if so, send them to www.microsoft.com/data
and have them DL and install Mdac 2.7 and Jet 4.0

D?

"Karen" <tdavi...@msn.com> wrote in message news:45fa01c1fd18$fa063dc0$3aef2ecf@TKMSFTNGXA09...

0 new messages