Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2004

    Unanswered: button referencing (Help quick!)

    I have an exit button on my main form. If the user doesn't fill in all of the fields on the main form and then hits exit it will ask the user if they want to cancel the changes (otherwise it will save what they put in). In the main form I also have a subform. If the user doesn't fill in all of the fields in the subform and hits exit, it actually will exit. I need it to do the same thing it does for the main form on the subform, all by hitting the single exit button. I tried copying the code straight over to the subform but it doesn't work. Do you need to reference the button over to the subform? Is it possible to use a single button on both the main and sub-form? I hope so. Thanks a lot for the help!

  2. #2
    Join Date
    Mar 2004
    Melbourne, Australia

    CausesValidation property

    You did not mention the language you are writing in. If that is VB then have a look at CausesValidation property of the command button

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts