Code:
Private sub txtbx1 Afterupdate() Dim SQL As String SQL = SELECT EMPID, COUNT(*) FROM table GROUP By EMPID HAVING COUNT(*) > '" & me.txtbx1 & "'" DoCmd.RunSQL SQL End sub
Private sub txtbx1 Afterupdate() Dim SQL As String SQL = SELECT EMPID, COUNT(*) FROM table GROUP By EMPID HAVING COUNT(*) > '" & me.txtbx1 & "'" DoCmd.RunSQL SQL End sub
Private Sub Leave_Start_Date_BeforeUpdate(Cancel As Integer)
Dim strDate As String
'We format the date string to include the '#' delimiters
strDate = Format(CDate(Me.Leave_Start_Date), "\#m/d/yyyy\#")
Cancel = DMax("(" & strDate & " Between [Leave Start Date] And [Leave End Date])", _
"[Trial]", _
"([Staff Number] =" & Me.Staff_Number &
Leave a comment: