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

Error 91 Object Variable not found (Urgent)

P: 4
Hi Experts

I have a problem in VB 6.0. I have developed small window application in VB.6.0 using ADODC control. I used an MS Access database. I also registered control ADODC with windows. But I still recieved an error massage when I use my application "Run time error 91 object variable or block variable are not set".
Please help me soon as possible.


QASIM ALI
Mar 28 '07 #1
Share this Question
Share on Google+
4 Replies


Expert 5K+
P: 8,434
I have a problem in VB 6.0. I have developed small window application in VB.6.0 using ADODC control. I used an MS Access database. I also registered control ADODC with windows. But I still recieved an error massage when I use my application "Run time error 91 object variable or block variable are not set".
I think we'd need to see the relevant part of the code to provide specific help, but I believe that before you can do anmything with your object, you need to do a Set or CreateObject statement.

(Objects are not my strong suit, though).
Mar 29 '07 #2

vijaydiwakar
100+
P: 579
Hi Experts

I have a problem in VB 6.0. I have developed small window application in VB.6.0 using ADODC control. I used an MS Access database. I also registered control ADODC with windows. But I still recieved an error massage when I use my application "Run time error 91 object variable or block variable are not set".
Please help me soon as possible.


QASIM ALI
use new kyword or use set keyword like
dim a as new Adodb.Connection
or
dim a as Adodb.Connection
Set a = New Adodb.Connection
Mar 29 '07 #3

100+
P: 149
Hi Experts

I have a problem in VB 6.0. I have developed small window application in VB.6.0 using ADODC control. I used an MS Access database. I also registered control ADODC with windows. But I still recieved an error massage when I use my application "Run time error 91 object variable or block variable are not set".
Please help me soon as possible.


QASIM ALI

Hi ,

When do you specifically get this error. Is it during Update or delete or insert events. Or specific events.


thanks
ansuman sahu
Mar 29 '07 #4

vijaydiwakar
100+
P: 579
Hi ,

When do you specifically get this error. Is it during Update or delete or insert events. Or specific events.


thanks
ansuman sahu
how could u relate error 91 with insert update or delete?
Mar 29 '07 #5

Post your reply

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