DoCmd.RunCommand acCmdDeleteRecordMe![cboEmployeeID].Requery
Me![cboClientProject].RowSource = “”ErrorHandlerExit:
Exit SubErrorHandler:
MsgBox “Error No: “ & Err.Number _
& “; Description: “ & Err.Description
Resume ErrorHandlerExitEnd SubThe dialog form opened from the Send Timesheets to Excel button is shown in Figure 7.14.FIGURE 7.14A dialog form for reviewing this week’s timesheets.
The txtEmployeeID textbox on the datasheet subform on the dialog form has a DblClickevent
procedure, so you can double-click an employee name to open that timesheet for editing, if
necessary:Private Sub txtEmployeeID_DblClick(Cancel As Integer)On Error GoTo ErrorHandlerDim lngID As Long
Dim strClientCode As StringWorking with Excel Worksheets 7