policechiefwiggum
Programmer
Hi Guys, sorry, back again!
I'm having a bit of trouble with an if command, i think i know what causing the issue but not 100% sure how to sort it.
i have a form which has a text box and a check box, if the user has not entered a value in the text box or checked the tick box i want to display an error. this is what i've written but its not working
when i debug the code i seem to have an issue with
fluctuating between "-1" & "False" and
fluctuating between "" & Null can i standardise how these values are being read? i need to replicate this code for 5 fields
also on a related note, once the user has checked the tick box is there anyway i can get access / VBA to identify which fields have blank text fields but checked tick boxes, rather than writing if commands for each possible scenario?
Thanks in advance
I'm having a bit of trouble with an if command, i think i know what causing the issue but not 100% sure how to sort it.
i have a form which has a text box and a check box, if the user has not entered a value in the text box or checked the tick box i want to display an error. this is what i've written but its not working
Code:
If Me.ChkProjectManager.Value = False And Me.ProjManager.Value = "" Then
MsgBox "Please enter Project Managers name or tick box to continue"
End If
when i debug the code i seem to have an issue with
Code:
Me.ChkProjectManager.Value
Code:
Me.ProjManager.Value
also on a related note, once the user has checked the tick box is there anyway i can get access / VBA to identify which fields have blank text fields but checked tick boxes, rather than writing if commands for each possible scenario?
Thanks in advance