InfoPath Code: Change view and add new record

RF-JM-UOI
RF-JM-UOI used Ask the Experts™
on
Using InfoPath 2007...

I have a form that I would like to include a button on that would both change the current view as well as create a new blank record.  I believe this will have to be handled by code since I do not see a way to use the canned options to do both operations.  Any help would be greatly appreciated.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Clay FoxDirector of Business Integration
Commented:
If you are using a repeating section or table, I believe you can add a switch view action to the insert button.

I will check it later.

Otherwise what kind of code are you using?

Author

Commented:
Right now there is no custom code in the form.  I am using a repeating section.  I would like to do it with a regular control button if at all possible.

Author

Commented:
I do see what you are talking about, but there is no option to change view as part of the rule.
I decided to just change the view with the button, then run a failed query to leave a blank view of the repeating section.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial