By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,780 Members | 1,126 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,780 IT Pros & Developers. It's quick & easy.

Runtime error 91

P: 41
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.
Nov 28 '07 #1
Share this Question
Share on Google+
4 Replies


lotus18
100+
P: 866
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
Nov 28 '07 #2

Expert 5K+
P: 8,434
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.
Nov 29 '07 #3

P: 41
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.
Nov 29 '07 #4

Expert 5K+
P: 8,434
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.
Nov 29 '07 #5

Post your reply

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