473,382 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

debug this problem ' run-time error '91': object variable or with block variable not

hi

Can anyone help to debug this problem?

the error msg is run-time error '91':
object variable or with block variable not set.

here is my source code:

Option Explicit
Private m_conOra As ADODB.Connection
Private m_conEXTT As ADODB.Connection
Private m_strStatus As String
Private m_strDate As String

Private Sub Form_Load()

Set m_conOra = ConnectMe ' Connect DataBase
Set m_conEXTT = Connect_EXTT ' Connect EXIT DataBase

Private Sub Form_Unload(Cancel As Integer)
m_conOra.Close
Set m_conOra = Nothing
m_conEXTT.Close
Set m_conEXTT = Nothing
End Sub
Nov 1 '06 #1
3 4182
Killer42
8,435 Expert 8TB
Which line produces the error?
Nov 1 '06 #2
scripto
143 100+
neither one of your databases were opened, so you will get an error when you call .Close()
Nov 1 '06 #3
sashi
1,754 Expert 1GB
Hi there,

Kindly refer to below attached link, hope it helps. Good luck & take care.

http://www.thescripts.com/forum/thread13693.html
Nov 1 '06 #4

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

Similar topics

1
by: Keld Hammerum | last post by:
Hi, I am verifying a large DSP algorithm using JBuilder 7 and Windows 2000 Professional. The result of my test depends on the way I run the program, though. Here is the situation: a) I run...
9
by: Robert Ferrell | last post by:
I'm trying to do some debugging of python extensions on Windows2K. MS Visual Studio (.NET) says it can't find the debug version of the python libraries. (The message is "python.exe does not...
2
by: Philip | last post by:
My debugging capabilities within Visual Studio 2003 have stopped working. None of my applications created over the past year will run in debug (F5) mode. I created a simple "Hello World"...
10
by: Bhavna Rohra | last post by:
Hello everyone, Sorry, it might sound easy for everyone but please if someone colud tell me how to debug my MFC application in Release mode. Thanks
1
by: Sam Kong | last post by:
Hello! I am using VC# 2005 Express Beta. DEBUG flag is not automatically set when I run at debug mode #if DEBUG //... #endif
6
by: Luis Esteban Valencia | last post by:
Hi, I want in debug mode debug=true. In release (production), no reason debug to be true but the questions are: 1. Does it slow the application (holding debug=true) 2. If yes, how can I solve...
3
by: Rena | last post by:
Hi all, I have created a app. project and a library which will be used by the main project, however i do not know how to get into debug mode inside the library, although break point is set. is...
1
by: UJ | last post by:
Is there a way when you have more than one project in a solution to debug each of them? The only way I've seen to be able to run the multiple pieces is to have one set as the default project and...
4
by: herc | last post by:
For some reason when I use Debug.WriteLine(), it does not send anything to the output window any more. I have noticed this in C#, VB.Net, and in Unmanaged C++. Any thoughts?
3
by: =?Utf-8?B?bG10dGFn?= | last post by:
We have developed a number of different applications (ASP.NET web site, Windows services, DLLs, Windows forms, etc.) in C# 2.0. We have developed and unit tested all these applications/components...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.