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.Connectio n
Private m_conEXTT As ADODB.Connectio n
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(Can cel As Integer)
m_conOra.Close
Set m_conOra = Nothing
m_conEXTT.Close
Set m_conEXTT = Nothing
End Sub
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.Connectio n
Private m_conEXTT As ADODB.Connectio n
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(Can cel As Integer)
m_conOra.Close
Set m_conOra = Nothing
m_conEXTT.Close
Set m_conEXTT = Nothing
End Sub
Comment