Consulting

Results 1 to 3 of 3

Thread: Not show update/delete/insert popup

  1. #1
    VBAX Regular
    Joined
    Mar 2005
    Posts
    67
    Location

    Not show update/delete/insert popup

    Hi,
    I have a question.
    I have a loop that is running and inserting columns from one table into another. Im using DoCmd.RunSQL(). The only problem is that everytime a record is about to be inserted a pop comes up saying something on the lines of "A record is about to be updated. do you wish to continue". Is there anyway i can hide this? Or is there any other function i can use other then DoCmd.RunSQL() so this does now show up?

    Thank you
    Mike

  2. #2
    Try -

    [VBA]'This command switches off ALL warning messages, NOT only Action Queries
    'And insert the following line following the DoCmd.RunSQL MySQL command:

    Application.SetWarnings False

    'If you wish to eliminate ONLY the Action Queries confirmation from your code

    Application.SetOptions "Confirm Action Queries"[/VBA]

  3. #3
    Moderator VBAX Master geekgirlau's Avatar
    Joined
    Aug 2004
    Location
    Melbourne, Australia
    Posts
    1,464
    Location
    The usual method is something like the following:

    [VBA]
    Application.SetWarnings False
    Docmd.RunSQL x
    Application.SetWarnings True
    [/VBA]

Posting Permissions

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