Results 1 to 2 of 2

Thread: Object Variable or With Block Variable Not Set !

  1. #1

    Thread Starter
    Addicted Member tcurrier's Avatar
    Join Date
    May 1999
    Location
    Northeastern Pa./USA
    Posts
    255
    I'm having trouble with one particular user's machine, where my application gets a RUN TIME ERROR '91' - 'OBJECT VARIABLE OR WITH BLOCK VARIABLE NOT SET'.

    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.
    I even tried reinstalling on the user's machine, but no luck.

    Thanks for any help.

  2. #2
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    check if you're trying to set an object to a variable with

    objone = objTwo

    or

    objOne=Nothing

    or

    objone=New clsWhatever

    or something like that, if you are vb will raise your error message. put the word Set in front of these commands.


    Are you trying to print using the printer object, do something with the screen object, something like that, ask the user if they have had this sort of problem before with other applications.

    Try and find something that's different about the users machine to the others you have installled it on, are they running windows NT when everyone else is Running windows 9x

    if you still can't find anything wrong report it to microsoft, VB is full of bugs there's bound to be some they havn't found yet.

    Hope this helps.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width