It's OK. I figured it out. I had to make it fully trusted.
For other newbies with this problem, do this (when you are in design view of Infopath):Tools / Form Optionsclick the 'Security and Trust' categoryuncheck 'Automatically determine security level'check 'Full Trust'Then, you should no longer get that error. ...