Avoiding 'Delete Table' Warning in Make-Table Query

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bbatson
    New Member
    • Sep 2007
    • 46

    Avoiding 'Delete Table' Warning in Make-Table Query

    Hello,

    Does anyone know how to avoid the 'delete table' warning that comes with a make-table query?

    As an example, I am referring to this message box:



    Thank you!
  • Scott Price
    Recognized Expert Top Contributor
    • Jul 2007
    • 1384

    #2
    In VBA code you can (assuming you are calling the make-table query from a command button) place this code before the code that calls the query:

    Code:
    DoCmd.SetWarnings False
    Don't forget to turn them back on before leaving the subroutine by using this code:

    Code:
    DoCmd.SetWarnings True
    Regards,
    Scott

    Comment

    • bbatson
      New Member
      • Sep 2007
      • 46

      #3
      Works perfectly - many thanks.

      Comment

      • Scott Price
        Recognized Expert Top Contributor
        • Jul 2007
        • 1384

        #4
        You're welcome! Glad it works for you.

        Regards,
        Scott

        Comment

        Working...