I hope someone can help with this.
I have a table (tbl_test). Within that table I have fields. The two fields, which are combo boxes, I want to deal with in this example is: "field1" and "field2". tbl_test is associated with a form named "form1". I want to be able to make sure the user types or chooses a value in at least one of those fields with out leaving the form. The user doesn't have to have text in both, but at least one. Example: If the user has text in "field1" and not "field2", he can leave the form, or vice versa, if he has text in "field2", but not "field1", he can leave the form, but if he does not have text in either field, I want a msgbox to let him no he needs to fill in at least one field.
Can someone help me with code for this. I tried some variations, and I can't get my code to work.
Thanks
I have a table (tbl_test). Within that table I have fields. The two fields, which are combo boxes, I want to deal with in this example is: "field1" and "field2". tbl_test is associated with a form named "form1". I want to be able to make sure the user types or chooses a value in at least one of those fields with out leaving the form. The user doesn't have to have text in both, but at least one. Example: If the user has text in "field1" and not "field2", he can leave the form, or vice versa, if he has text in "field2", but not "field1", he can leave the form, but if he does not have text in either field, I want a msgbox to let him no he needs to fill in at least one field.
Can someone help me with code for this. I tried some variations, and I can't get my code to work.
Thanks