Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help Please!!!

Status
Not open for further replies.

north2060

Programmer
Apr 11, 2002
23
AU
I am getting error message when I open main form which has few subforms. Could you please tell me why I am getting error message "Can't set value to NULL when checkBox property = FALSE"? It was alright before but when I deleted test data from all the tables I got this error. How can I get rid of this error?
 
It looks like your complex form is looking for data, can't find it and your code / condition is creating an error.

CheckBoxes like to be True / False or Yes / No or On / Off. 0 = False, other values are True, usually 1 or -1. It seems that the form is setting the value to null and fails.

...Moving on
A Yes/No check box can have a "TripleState" where the form can account for null data - it does not set the data to null; just accommodate for null data.

Looks at your check boxes, and look at your data. Remember to enter the parent data first before entering child data.

Hope this helped.
Richard

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top