Which event is it best to put this into

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • munkee
    Contributor
    • Feb 2010
    • 374

    Which event is it best to put this into

    All,

    I have a form with 5 tabs, which I navigate through using normal buttons on the page (for design aesthetics purely).

    Upon loading the form I want only three of these buttons to be enabled.

    However, once the third page has been fully completed I want the 4th button to become enabled.

    Once the 4th page is fully completed I want the 5th tab to be enabled.

    I am trying to work out in which event I would place code to check for this. Would I be putting code to conditionally check to see if the forms have been completed within the on current event of the form?

    I was thinking of after update but this would not work correctly if a user exits the form and reloads it as I assume I would disable the buttons originally within the on load event?

    Thanks for any help

    Chris
  • munkee
    Contributor
    • Feb 2010
    • 374

    #2
    Actually I have buttons on each of the pages to "save" the current information they have entered. I guess I could do a validation using the onload event when the form is opened to choose which buttons get enabled, then use the same validation in the save buttons?

    Comment

    • TheSmileyCoder
      Recognized Expert Moderator Top Contributor
      • Dec 2009
      • 2322

      #3
      I think I would make a seperate procedure and then call it from the Form_Current as well as from your save buttons. Unless your tabs have subforms, then your Form_Current will only fire once, when you enter the record. I dont believe Form_Current fires when switching tabs.

      Comment

      Working...