The code below is supposed to work like this. I have a payment button that is located on a form and when the record is locked I don't want an employee to be able to access the make payment button. It don't work right and help?
Private Sub MakePayments_Click()
If Not Forms!sProjects.Recordset.EOF Then
stDocName = "Payments"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Else
MsgBox "Record Being Edited (Try Later)"
End If
End Sub
Private Sub MakePayments_Click()
If Not Forms!sProjects.Recordset.EOF Then
stDocName = "Payments"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Else
MsgBox "Record Being Edited (Try Later)"
End If
End Sub