I have a form on infopath project.I have fields (droplist boxes) on which I insert names(string value) connected with an access database table.I have another field(textbox) in the form, in which I would like to be displayed automatically,(using a button event handler for example) an intenger that comes from total number of my fields(droplist boxes) in case they are not blank.A simple examble so that I become more specific: A form with three fields: field1 filed2 filed3 If field1 has the valued "Maria",or whatever string value, and field2 has the value "Nikos",or whatever string value, I want the filed3 value to be ,in this case, "2" which are the number of string valued fields. Is that possible to become programmatically using vba code? Thank you in advance.