Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Private Sub Form_BeforeInsert(Cancel As Integer)
Dim RowStatus As Integer
On Error GoTo Err_BeforeInsert
RowStatus = SysCmd(acSysCmdGetObjectState, acForm, "frmtime subform") 'Should check the rowstate
If RowStatus = 0 Then 'If RowStatus=0 then the record is not locked
'Do some code if the row is not locked
Else
'Display a custom message
'detailing which machine has the record locked.
'Keep checking if to see if the record is still locked
'Notify the user when the record becomes available
End If
Exit_BeforeInsert:
Exit Sub
Err_BeforeInsert:
MsgBox "An error has occured when trying ot set the value of the Date Worked field." & vbCrLf & _
"Error Number: " & Err.Number & vbCrLf & _
"Error Message: " & Err.Description
Resume Exit_BeforeInsert
End Sub