Hello
I have an InfoPath 2010 Form that has some VB code behind it (written using Visual Studio 2005), that is connecting to a database held on a machine running SQL Server 2008r2.
I want to be able to force fields in the InfoPath Form to be editable or not, but haven't found the code to be able to do this yet (I have done a fair amount of looking as well).
I can refresh the data connection very easily:
Me.DataConnections("Main connection").Execute()
However this isn't making the fields editable when I need them to be.
Any help with this would be greatly appreciated.
M