I want to create a validation rule for a field [E_ID] in the form [Check Out] so that when the field is updated, the field should contain only the values of the records which have another field [Status] as "Available" in another query [Equipments Query]?????
I tried the following, but it says there is an error in this:
Private Sub E_ID_AfterUpdate()
If tblEquipments.Status = "Unavailable" Then
MsgBox "The equipment is already rented", vbInformation, "Nexsar Rentals"
End If
End Sub
Any genius with an idea for this???
I tried the following, but it says there is an error in this:
Private Sub E_ID_AfterUpdate()
If tblEquipments.Status = "Unavailable" Then
MsgBox "The equipment is already rented", vbInformation, "Nexsar Rentals"
End If
End Sub
Any genius with an idea for this???
Last edited: