473,804 Members | 3,209 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

vb 6 runtime error'91':

2 New Member
i wrote and compiled an vb 6 program on a windows xp sp2 box

i am trying to run the program via a batch file from an nt box

i get this error:

runtime error 91:
object variable or With block variable not set

the program runs under the scheduler on xp, and in debug in vb ide

thanks in advance for the help
Aug 1 '06 #1
2 3854
sashi
1,754 Recognized Expert Top Contributor
hi there,

are you using any acticex in your program? compile the program in your nt box once again.. it will solve the problem.. take care..
Aug 1 '06 #2
ronboris
2 New Member
hi there,

are you using any acticex in your program? compile the program in your nt box once again.. it will solve the problem.. take care..
sashi,

there are no activex controls.

The program was compiled on an xp box.

i am trying to run it via a batch file on an nt box.

thanks for your help
Aug 1 '06 #3

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

Similar topics

1
75023
by: Peter | last post by:
I have a program which was working fine. In it a function works out the number of .jpg files in a specified folder. I then realised that I needed to make sure the folder exists first & added the code for this. After this I get the Runtime Error 91 - Object variable not set. I've rem'd out my added code to no avail. Tried rebooting to. The earlier exe version of the program continues to work OK. The code in question is shown below. I'd...
3
1754
by: abcd | last post by:
I am using asp page and a VB component VB component has a simple method which inserts a record into Access databse like Dim conn As New ADODB.Connection Dim cmd As New ADODB.Command conn.Open strDSN Set cmd.ActiveConnection = conn
3
35518
by: Richard Hollenbeck | last post by:
I've marked the line in this subroutine where I've been getting this error. It may be something stupid but I've been staring at this error trying to fix it for over an hour. I'm pretty sure the table and field names and controls are all named correctly, and the control referred to in the errant code is open, and it has data in it. Private Sub cmdAddIngredientToRecipe_Click() ' Get RecipeID for future action query Dim recipeID As Long
3
2085
by: david stradling | last post by:
I've written a program in VB6 and given it to a friend. I have supplied him with updates and suddently he gets runtime error 91. I suspect this is something to do with copying a new version via email. I found that if I deleted my data file and tried to run the program, I got runtime error 91. As soon as I restored this data file, the runtime error dissappeared. Maybe this info might be of some use to somebody. David
6
4285
by: Smigger | last post by:
Afternoon, I'm having a little trouble with the code listed below, in Access 2003 which is opening and editing an existing Excel 2003 workbook. The section of code works the first time round, however, on the second pass the Runtime error 91 comes to haunt me at the line highlighted in bold below. The idea of the script is to update a standard customer questionaire (xls file) with some basic details from a database and then attach the...
4
1552
by: Neelesh2007 | last post by:
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...
5
4757
by: krafla | last post by:
I have a similar problem with a program i made with VB 6.0 - the only control I used is MSFlexGrid - the program was developed on an XP machine. and the first time to use it on another machine i got two errors: 1- Class Not Registered Looking for Object with CLSID:{0000010-0000-0010-8000-00AA006D2EA4} this error message appears only at start up and as i click OK the program starts without reading the DB file. and if i save a new entry...
15
5877
by: r90slash6 | last post by:
Hi Guys, I have code for click event on an Access form that opens an Excel file, refreshes data of a pivot table on the active worksheet and then filters records based on a criteria. Everything works fine if I open Access for the first time and click the button to run my code. However, if I close the Excel file and then reclick the button that runs my code I receive a debug message saying "Run-time error 91, Object variable or with block not...
15
8394
by: squrel | last post by:
Hi everyone.. i need ur help once more time.... i have a form called reminder..in tht form i have: txtid, txtcaseid, txtreminder, cmbremindby(system or user), txtremindto, dtpreminddt, MAPISession1, MAPIMessages1, cmdReminder in this case i have to set some fix reminder and fix date for every month tht automatically send by the system to some particular people... i dont knw anything abt mapi control and have never used tht... got some...
0
9708
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10340
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10324
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10085
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9161
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7623
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5527
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5662
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2998
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.