Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Object Variable or with Block Variable Not Set

Status
Not open for further replies.

tcurrier

Programmer
Mar 5, 2000
40
US
I'm having trouble with one particular user's machine, where my application gets a RUN TIME ERROR '91' - 'OBJECT VARIALBE OR WITH BLOCK VARIABLE NOT SET'.<br>
<br>
Does anyone have any information on this error? On the Microsoft Web site it says that the error may occur during the Package and Deployment process, but that's not the situation here.
 
This sounds as if you have not registered all of the .ocx's that you need to on the users machine.<br>
<br>
Make a list of all the .ocx's your project uses (look in the .vbp file for the lines beginning &quot;Reference&quot;)<br>
<br>
Make sure the correct versions of these .ocx's are in your users system32 directory.<br>
<br>
Run &quot;regsvr32 ocxname.ocx&quot; on the users machine for each .ocx you copied there.<br>
<br>
Mike<br>
<p>Mike Lacey<br><a href=mailto:Mike_Lacey@Cargill.Com>Mike_Lacey@Cargill.Com</a><br><a href= Cargill's Corporate Web Site</a><br>
 
If you're using the FileSystemObject, make sure the scripting host runtime is there.<br>
<br>
<p>nick bulka<br><a href=mailto:nick@bulka.com>nick@bulka.com</a><br><a href= > </a><br>
 
Just in case anyone is interested : I went into the program to put in a couple MSGBOX displays, recompiled the program on the server, and now the error went away. Go figure !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top