Public Sub InitConnection()
On Error GoTo ErrProc
    If CustConnectioned = False Then
        Dim Str As String
        Set Conn = New ADODB.Connection
        If ServerName = "" Then GoTo ErrProc
        strSQL = "driver={SQL SERVER};server=" + ServerName + ";uid=sa;database=Ticket;pwd="
        Conn.Open strSQL
        CustConnectioned = True
    End If
        Exit Sub
    
ErrProc:
    CustConnectioned = False
    Set Conn = Nothing
    Exit Sub
End Sub