' Establish a connection to the database
adoConnection.ConnectionString = strConnectString
adoConnection.Open
' The Database connection was opened successfully
IsOpen = True
ConnectToDBExit:
Exit Sub
ConnectToDBErr:
On Error Resume Next
' Remove the Connection Object
Set adoConnection = Nothing
' The Database connection was not opened
IsOpen = False
' Err.Raise 1008, "clsDatabaseAccess", "Could not connect to the database. No files will be processed."
addLogEntry (Err.Number + " - " + Err.Description)