Results 1 to 4 of 4

Thread: VBA with Access

  1. #1

    Thread Starter
    Hyperactive Member singularis's Avatar
    Join Date
    Nov 2006
    Location
    Over There!
    Posts
    372

    VBA with Access

    Hello All,

    I am using VBA with Access and would wish to know to prevent the "Are you sure you want to alter/append rows?" from popping up every time I make a query.
    If what I said was helpful, give me rep!

    My Complete Games: -- 2D Zone (Space Shooter game) || _2D Zone 2_ || Ninja Blob (2D platformer) || Dren (Co-op up to 4 player base defence game)

    My Projects: -- The Dread Engine (2D VB game Engine) || A* Path Finding


    An excellent site for learning DirectX7, 8 & 9 (for VB6, C# & VB.net) would be: directx4vb.vbgamer.com --- For my projects and games see: pieper.freehostia.com

  2. #2
    Giants World Champs!!!! Mark Gambo's Avatar
    Join Date
    Sep 2003
    Location
    Colorado
    Posts
    2,965

    Re: VBA with Access

    Quote Originally Posted by singularis
    Hello All,

    I am using VBA with Access and would wish to know to prevent the "Are you sure you want to alter/append rows?" from popping up every time I make a query.
    Open your Database and then select from the menu bar: Tools ---> Options and the Options Window will open. Next click the Edit/Find Tab and then Unselect in the Confirm Section the following: Action Queries and Record Changes. You shouldn't get that message any more.
    Regards,

    Mark

    Please remember to rate posts! Rate any post you find helpful. Use the link to the left - "Rate this Post". Please use [highlight='vb'] your code goes in here [/highlight] tags when posting code. When a question you asked has been resolved, please go to the top of the original post and click "Thread Tools" then select "Mark Thread Resolved."


  3. #3

    Thread Starter
    Hyperactive Member singularis's Avatar
    Join Date
    Nov 2006
    Location
    Over There!
    Posts
    372

    Re: VBA with Access

    Thanks, While you are there can you explain how to make the unsafe expression box stop popping up everytime you open the file
    If what I said was helpful, give me rep!

    My Complete Games: -- 2D Zone (Space Shooter game) || _2D Zone 2_ || Ninja Blob (2D platformer) || Dren (Co-op up to 4 player base defence game)

    My Projects: -- The Dread Engine (2D VB game Engine) || A* Path Finding


    An excellent site for learning DirectX7, 8 & 9 (for VB6, C# & VB.net) would be: directx4vb.vbgamer.com --- For my projects and games see: pieper.freehostia.com

  4. #4
    Frenzied Member
    Join Date
    Feb 2003
    Location
    Argentina
    Posts
    1,950

    Re: VBA with Access

    MarkGambo's setting is correct, and what I use. It applies to all Access mdb files. If you just want to turn them off for a specific piece of code, you can use DoCmd.SetWarnings False, and then DoCmd.SetWarnings True to turn them back on.
    [edit]
    To clarify, Mark''s way works for any mdb file opened by that install of Access. If someone with their own copy of Access opens the file, they'll still get the warnings (unless they unchecked their options as well). Setting it in code works for anyone opening that file, but doesn't affect other mdb files.
    Never seen the "unsafe expression" warning.
    Last edited by salvelinus; Apr 17th, 2007 at 09:40 AM.
    Tengo mas preguntas que contestas

Posting Permissions

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



Click Here to Expand Forum to Full Width