Connecting Tech Pros Worldwide Forums | Help | Site Map

Runtime error 91

Member
 
Join Date: Oct 2007
Posts: 41
#1: Nov 28 '07
I am using window XP, Access 2003 and vb6.0 enterprise edition. Till now my whole application worked fine. But today i install SP6 from miscrosoft website. After this some of my Adodc and DataEnvironment command gives me RunTime Error 91, "Object variable or with block variable not set". The error comes with following commands.
>if adodc1.recordset.recordcount=0 then

and
>dataenvironment1.command1 text1.text

I uninstall vb6.0 and then re-Install but problem is not resolved. Please help me urgent.
Thanks.

lotus18's Avatar
Site Addict
 
Join Date: Nov 2007
Location: Zamboanga City, Philippines
Posts: 861
#2: Nov 28 '07

re: Runtime error 91


Quote:

Originally Posted by Neelesh2007

I am using window XP, Access 2003 and vb6.0 enterprise edition. Till now my whole application worked fine. But today i install SP6 from miscrosoft website. After this some of my Adodc and DataEnvironment command gives me RunTime Error 91, "Object variable or with block variable not set". The error comes with following commands.
>if adodc1.recordset.recordcount=0 then

and
>dataenvironment1.command1 text1.text

I uninstall vb6.0 and then re-Install but problem is not resolved. Please help me urgent.
Thanks.

Does the installation successful? I think there's something wrong with the .ocx files. Try to double-check again your codes. : )

Rey Sean
Moderator
 
Join Date: Oct 2006
Location: Australia
Posts: 7,748
#3: Nov 29 '07

re: Runtime error 91


Quote:

Originally Posted by Neelesh2007

I am using window XP, Access 2003 and vb6.0 enterprise edition. Till now my whole application worked fine. But today i install SP6 from miscrosoft website.

SP6 of what?

Anyway, it sounds as though perhaps some updated DLL has a compatibility problem. I'm not sure how you'd go about fixing it though.
Member
 
Join Date: Oct 2007
Posts: 41
#4: Nov 29 '07

re: Runtime error 91


Quote:

Originally Posted by Killer42

SP6 of what?

Anyway, it sounds as though perhaps some updated DLL has a compatibility problem. I'm not sure how you'd go about fixing it though.


I again uninstall & re-Install vb6.0 and this time problem is solved. Thanks for helping.
Moderator
 
Join Date: Oct 2006
Location: Australia
Posts: 7,748
#5: Nov 29 '07

re: Runtime error 91


Quote:

Originally Posted by Neelesh2007

I again uninstall & re-Install vb6.0 and this time problem is solved. Thanks for helping.

Let's just hope it hasn't upset anything else.
Reply


Similar Visual Basic 4 / 5 / 6 bytes