Requery Method (Control or Form Object) Example

The following example uses the Requery method to requery the data from the EmployeeList list box on an Employees form:

Sub RequeryList()
    Dim ctlList As Control

    ' Return Control object pointing to list box.
    Set ctlList = Forms!Employees!EmployeeList
    ' Requery source of data for list box.
    ctlList.Requery
End Sub