Results 1 to 2 of 2
  1. #1
    Lounger
    Join Date
    Oct 2009
    Posts
    37
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi hope you don't mind a question from a beginner.

    I'm starting in VBA and have created a form which deletes out information from a table than adds in new rows. It works fine, however it sends me a message I have to click "OK" for each line it wants to add - how do I get it to switch this off and just run the code? I've tried Echo = False, but that doesn't seem to work. Thanks so much.

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts
    Welcome to the Lounge!

    To suppress the prompts, insert a line

    DoCmd.SetWarnings False

    To turn them on again at the end of the code, insert a line

    DoCmd.SetWarnings True

Posting Permissions

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