lundi 16 mai 2016

Access VBA - Checkbox always returns false

I have a form populated with items from a table. Each item has a checkbox which allows the user to request that item after clicking a button. Requested is the checkbox. I've tried Me!Requested = 0, and that gives the same result.

The problem is that the checkbox value always returns false even when it is checked. Referring to the code, I always get the first message.

Private Sub btnSubmitRequest_Click()

If Me!Requested = False Then
    MsgBox ("Please select at least 1 item to check out.")
    Exit Sub
Else
   MsgBox ("123")
End If

End Sub




Aucun commentaire:

Enregistrer un commentaire