[COLOR=seagreen]'Delete any existing rowsource data from cbo_Actions.[/COLOR]
    Me.cboActions.RowSource = ""
    Me.cboActions.Value = Null
 
    [COLOR=seagreen]'Add the "All Actions" value to ActionList.[/COLOR]
    ActionList.AddItem "0;" & ACTION_DEFAULT
 
    [COLOR=seagreen]'Create a query containing all the actions listed in dbo_tblActions.[/COLOR]
    SQL = "SELECT dbo_tblActions.ActionID, dbo_tblActions.ActionName FROM dbo_tblActions ORDER BY [ActionName];"
 
    [COLOR=seagreen]'Open a recordset based on SQL.[/COLOR]
    Set rs = CurrentDb.OpenRecordset(SQL, dbOpenSnapshot)
 
    With rs
       [COLOR=seagreen]'Ensure the pointer is at the beginning of the file.[/COLOR]
        .MoveFirst
       [COLOR=seagreen]'Loop through the recordset.[/COLOR]
        Do Until .EOF
            [COLOR=seagreen]'Add the ActionID and ActionName from the current record.[/COLOR]
            ActionList.AddItem .Fields("ActionID").Value & ";" & .Fields("ActionName")
           [COLOR=seagreen]'Move to the next record.[/COLOR]
            .MoveNext
        Loop
    End With
 
   [COLOR=seagreen]'Set the default value for cboActions to 0.[/COLOR]
    Me.cboActions.Value = 0