Private Sub LoadEmailsUsed()
' Loads all used emails so that they can be quickly selected by the user if necessary
Dim Idx As Long
Dim EmailRS As ADODB.Recordset
On Error GoTo Err_LoadEmailsUsed
Form_EmailList.CmbActioned.RowSourceType = "Value List"
' Clear the List
Do While Form_EmailList.CmbActioned.ListCount > 0
Form_EmailList.CmbActioned.RemoveItem 0
Loop
' Set the first Item in the list to a Blank
Form_EmailList.CmbActioned.AddItem " ", 0
Set EmailRS = New ADODB.Recordset
EmailRS.Open "Emails", TheConn, adOpenKeyset, adLockPessimistic, adCmdTable
EmailRS.MoveFirst
Do Until (EmailRS.EOF) Or (EmailRS.BOF)
Form_EmailList.CmbActioned.AddItem EmailRS.Fields(1), EmailRS.Fields(0)
EmailRS.MoveNext
Loop
EmailRS.Close
Set EmailRS = Nothing
Exit_LoadEmailsUsed:
On Error GoTo 0
Exit Sub
Err_LoadEmailsUsed:
MsgBox "Form_EmailList - LoadEmailsUsed - " & Err.Number & " - " & Err.Description
Resume Exit_LoadEmailsUsed
End Sub