• 2467 Runtime Error? (a2k (9.0.6926) SP-3 Jet 4.0 SP-8)

    Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » 2467 Runtime Error? (a2k (9.0.6926) SP-3 Jet 4.0 SP-8)

    Author
    Topic
    #430727

    I have the following code Private Sub Close_Form_Click() in frm_CR_Duplicates

    When the Close Command Button is clicked I display following message

    Yes – click works OK, lngViolTypeID is a Combo Box on the form I

    Viewing 1 reply thread
    Author
    Replies
    • #1006595

      Why are you closing the form before the routine?

    • #1006600

      Try changing

      DoCmd.Close

      to

      DoCmd.Close acForm, Me.Name

      • #1006693

        No Joy

        [Delete_Record_Click] is a Command Button on the Form Footer I

        • #1006694

          Does it help if you use

          Forms!frm_CR_ACD.SetFocus
          Forms!frm_CR_ACD![Delete_Record_Click].SetFocus

          • #1006697

            Same error

            I really only want to run Private Sub Delete_Record_Now() in the form I

            • #1006698

              You could make the Delete_Record_Now sub Public instead of Private. You should then be able to use

              Form_frm_CR_ACD.Delete_Record_Now

            • #1006699

              That got it, much better technique

              Thanks for all your help

              John

    Viewing 1 reply thread
    Reply To: 2467 Runtime Error? (a2k (9.0.6926) SP-3 Jet 4.0 SP-8)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: