Re: Validation Rule in Access form
- From: michael.meenan@xxxxxxxxx
- Date: 31 Mar 2006 10:34:33 -0800
Private Sub Men_BeforeUpdate(Cancel As Integer)
If Me!Men Then
If DCount(1, "zMenTotal") = 15 Then
Cancel = True
MsgBox "This workshop is full."
End If
End If
End Sub
The only field in the query zMenTotal is MenTotal, which is done by
COUNT(Men) AS MenTotal FROM Workshops WHERE Men=True. However, it pulls
from the checkbox Men which is located in table Workshops. The name of
the control in the form is also Men.
.
- Follow-Ups:
- Re: Validation Rule in Access form
- From: tina
- Re: Validation Rule in Access form
- References:
- Validation Rule in Access form
- From: michael . meenan
- Re: Validation Rule in Access form
- From: tina
- Re: Validation Rule in Access form
- From: michael . meenan
- Re: Validation Rule in Access form
- From: tina
- Validation Rule in Access form
- Prev by Date: Re: Validation Rule in Access form
- Next by Date: Re: Validation Rule in Access form
- Previous by thread: Re: Validation Rule in Access form
- Next by thread: Re: Validation Rule in Access form
- Index(es):
Relevant Pages
|