Private Sub PhoneBook_Click()
On Error GoTo ShowMeError
    ProgressMessages = ProgressMessages & "Updating Phone Directory." & vbCrLf: ProgressMessages.Requery
    TILLDataBase.Execute "DELETE tblPhoneDirectory.* from tblPhoneDirectory;", dbSeeChanges
    TILLDataBase.Execute "INSERT INTO tblPhoneDirectory ( Department, Location, LocationDetail, LastName, FirstName, EmailAddress, JobTitle, " & _
        "InternalExtension, HasPhoneOnDesktop, ExternalPhoneNumber ) " & _
        "SELECT tblPeople.Department, tblPeople.OfficeCityTown AS Location, tblPeople.OfficeLocationName AS LocationDetail, tblPeople.LastName, " & _
        "tblPeople.FirstName, tblPeople.EmailAddress, tblPeople.StaffTitle AS JobTitle, tblPeople.DID AS InternalExtension, " & _
        "tblPeople.HasPhoneOnDesktop, tblPeople.StaffExtPhone AS ExternalPhoneNumber " & _
        "FROM tblPeople WHERE (((tblPeople.IsStaff) = True)) " & _
        "ORDER BY IIf([Department]='Residential Services',1,0), tblPeople.Department, tblPeople.LastName, tblPeople.FirstName;", dbSeeChanges
    ProgressMessages = ProgressMessages & "Preparing report." & vbCrLf: ProgressMessages.Requery
    Call ExecReport("rptDirectoryAlphaShort")
    ProgressMessages = "": ProgressMessages.Requery
    Exit Sub
ShowMeError:
    Call DropTempTables
    MsgBox "Error # " & Str(Err.Number) & " was generated by " & Me.Name & Chr(13) & Err.Description, vbOKOnly, "Error", Err.HelpFile, Err.HelpContext
End Sub