Public Function ISCenter_Data_Load_Routine(Optional ByVal ReportName As String, _
Optional ByVal MODName As String, _
Optional ByVal recct As Long, _
Optional ByVal ProcName As String, _
Optional ByVal sErr As String) As Boolean
Dim objLog As New clsISCenterEventLogger
On Error GoTo ISCenter_Data_Load_Routine_Error
With objLog
If .IsOpen = True Then
objLog.OpenLogRecord ReportName:=ReportName, _
MODName:=MODName, _
ProcName:=ProcName
Else
objLog.CloseLogRecord RowsAffected:=recct, _
ErrMsg:=sErr, _
AdditionalInfo:="Tested using VBA class", _
StepSucceeded:=1
End If
End With
On Error GoTo 0
Exit Function
ISCenter_Data_Load_Routine_Error:
MsgBox "Error " & Err.Number & " (" & Err.Description & _
") in procedure ISCenter_Data_Load_Routine of Module basEventLogger"
End Function
Option Compare Database
Option Explicit
Private mIsOpen As Boolean
Property Get IsOpen() As Boolean
mIsOpen = True
IsOpen = mIsOpen
End Property
ASKER
ASKER
ASKER
ASKER
Microsoft Access is a rapid application development (RAD) relational database tool. Access can be used for both desktop and web-based applications, and uses VBA (Visual Basic for Applications) as its coding language.
TRUSTED BY
Is it just used to detect if a particular object is open?
If so, there are simpler ways to do this besides creating a class...