• Warning (Access 2003)

    Author
    Topic
    #422408

    I have a button that you click and it appends rows to a table. The message always comes up that “this will append 3 rows to the table…”. How can I stop the message and still have it populate the table.

    Viewing 0 reply threads
    Author
    Replies
    • #963283

      Insert a line

      DoCmd.SetWarnings False

      at the beginning of the code behind the command button, and

      DoCmd.SetWarnings True

      at the end.

      • #963289

        Thanks!

      • #1004159

        Hello Hans,

        From Access 2000 help:[indent]


        When the macro finishes, Microsoft Access automatically turns the display of the system messages back on.


        [/indent]Is it really necessary to add the final DoCmd.SetWarnings True line?

        Thanks

      • #1004160

        [indent]


        at the end.


        [/indent]Re-reading your post, I believe that’s meant to be “at the end of the code behind the command button“, not “at the end of the code of the whole sub”. Sorry, my bad.

    Viewing 0 reply threads
    Reply To: Warning (Access 2003)

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

    Your information: