MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.
Private Sub clockout1_Click() If emp_id >= 1 And process_id >= 1 Then lngAnswr2 = MsgBox("Is your Entry Correct ?", vbOKCancel + vbQuestion) If lngAnswr2 = vbOK Then ' User chose Yes. CurrentDb.Execute "UPDATE dbo_timeclock SET clockout = Now() WHERE Emp_ID = " & Me.emp_id & " AND IsNull(clockout)" Me.Refresh Me.SetFocus DoCmd.Close ' update timeclock table with clockout time and close form Else ' User chose No. Me.Undo MsgBox "You have canceled your ClockIn!", _ vbExclamation, "ClockIn Canceled!" Set Me.Recordset = Nothing DoCmd.CancelEvent ' DoCmd.Close End If Else MsgBox "Please Make sure you have entered your Clock Number!", _ vbExclamation, "Did you forget your ClockIn #?" End If End Sub
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
|Union & Crosstab qrys 101!||6||55|
|MS Access How can I create a list box query for my report with sub-form data?||2||39|
|How create an easy way to link to two backend tables in a different Access database file||8||27|
|MS Access TransferDatabase with ODBC - Receive Run-time error '2507'||1||21|