I would like to add a button that will refresh/reload the secondary data connection for a list box, but havn't been able to get the code right. I tried
XDocument.DataObjects["Program_Name"].ForceUpdate();
but I am getting an error that XDocument.DataObjects.Program_Name is null or not an object. Not sure if I am close or way off the mark. Any help would be appreciated. I am using Infopath 2003.
Thanks in advance.