salating
09-27-2005, 07:23 AM
I have a sub form in my main form with a combo box.
When the user selects a certain value in that combo box its supposed check to see of the date of birth is entered in the main form, if not it has to put a check in the need dob checkbox in the main form.
here is what the Row Source is for the combo box
SELECT ctyLookup.CountyID, ctyLookup.County, ctyLookup.State FROM ctyLookup ORDER BY ctyLookup.County, ctyLookup.State;
the Control Source is CountyID
here is what I have in the code in the OnChange event
Private Sub cboCounty_Change()
If (Me.Parent!DateofBirth = "") And Me!CountyID.Value = "3110" Or "3111" Or "3123" Or "3135" Then
Me.Parent!chkNeedDOB = -1
End If
End Sub
for some reason it puts a check in the need dob box for every selection in the combo box
When the user selects a certain value in that combo box its supposed check to see of the date of birth is entered in the main form, if not it has to put a check in the need dob checkbox in the main form.
here is what the Row Source is for the combo box
SELECT ctyLookup.CountyID, ctyLookup.County, ctyLookup.State FROM ctyLookup ORDER BY ctyLookup.County, ctyLookup.State;
the Control Source is CountyID
here is what I have in the code in the OnChange event
Private Sub cboCounty_Change()
If (Me.Parent!DateofBirth = "") And Me!CountyID.Value = "3110" Or "3111" Or "3123" Or "3135" Then
Me.Parent!chkNeedDOB = -1
End If
End Sub
for some reason it puts a check in the need dob box for every selection in the combo box