On Form Creation Event Handler? - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

On Form Creation Event Handler?

Last post 08-24-2010 03:51 AM by JoanneWellings. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 08-24-2010 02:02 AM

    On Form Creation Event Handler?

    Hi all -

    I need a flag on an event handler which activates when a form is created, to flag that something is happening for the first time. I only want the code to run for one time only when the form is created. Is there some kind of On Creation event handler I can use? I can't use onLoad as it just reruns the code every time the form is reloaded. I can't use a flag as the value gets wiped out when it's declared at the start. I'm probably missing something really obvious here.

    TIA

  • 08-24-2010 03:07 AM In reply to

    Re: On Form Creation Event Handler?

    In IP 2007, you can use this.New in an if statement to only run certain code for new forms.

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
  • 08-24-2010 03:51 AM In reply to

    Re: On Form Creation Event Handler?

    This worked brilliantly, thank you. I had to use (Me.[New]) though.

Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.