Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!

How do i auto commit to prompts?

Discussion in 'Information Technology' started by Dave, Jul 28, 2006.

  1. Dave

    Dave
    Expand Collapse
    Guest

    I'm new to access and VB and have a quick question....

    I'm using VB to copy tables, move entries, delete entries, clear tables, ect.
    everytime one of these actions is done, I am warned that I am about to
    delete 10 entires, append 50 entries, ect. Is there a way for yes to be
    automaticly selected? And if so, how can I do this?

    Thanks for whatever help you can give.
     
  2. Loading...

    Similar Threads Forum Date
    Opinion Is Autocomplete Evil? Some Women Take A Hard Look at Google ! Breaking News Nov 7, 2013
    Sikh News AutoZone sued for firing Everett Sikh Breaking News Sep 29, 2010
    India Singh: Centre Ready To Give Kashmir Autonomy Breaking News Aug 11, 2010
    India Paste tariff cards behind driver’s seat: Transport dept to automen Breaking News Jul 21, 2010
    Gursharan Kaur: India's First Lady's Autobiography Sikh Personalities Jun 1, 2010

  3. microb0x

    microb0x
    Expand Collapse
    Guest

    Prior to making the necessary calls in VB to modify your tables call
    the following:

    DoCmd.SetWarnings False

    Then after your code had run call:

    DoCmd.SetWarnings True

    to turn the warnings back on.




    Dave wrote:
    > I'm new to access and VB and have a quick question....
    >
    > I'm using VB to copy tables, move entries, delete entries, clear tables, ect.
    > everytime one of these actions is done, I am warned that I am about to
    > delete 10 entires, append 50 entries, ect. Is there a way for yes to be
    > automaticly selected? And if so, how can I do this?
    >
    > Thanks for whatever help you can give.
     
  4. Allen Browne

    Allen Browne
    Expand Collapse
    Guest

    You can suppress those messages if you turn SetWarnings off.
    But then you don't know if the action succeeded for failed.

    Instead, Execute your action queries.
    There is no warning message if it succeeds.
    You can be notified it fails.
    And you can programmatically check the number of records affected.

    For an explanation of the details, see:
    Action queries: suppressing dialogs, while knowing results
    at:
    http://allenbrowne.com/ser-60.html

    --
    Allen Browne - Microsoft MVP. Perth, Western Australia.
    Tips for Access users - http://allenbrowne.com/tips.html
    Reply to group, rather than allenbrowne at mvps dot org.

    "Dave" <Dave@discussions.microsoft.com> wrote in message
    news:884409DA-0977-4BCA-A1B0-81736E2092B4@microsoft.com...
    > I'm new to access and VB and have a quick question....
    >
    > I'm using VB to copy tables, move entries, delete entries, clear tables,
    > ect.
    > everytime one of these actions is done, I am warned that I am about to
    > delete 10 entires, append 50 entries, ect. Is there a way for yes to be
    > automaticly selected? And if so, how can I do this?
    >
    > Thanks for whatever help you can give.
     

Share This Page