Welcome to SPN

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

Sign Up Now!
  1. Guest ji, please consider donating today!
      Become a Supporter    ::   Make a Contribution   
    Monthly Recurring Target: $300 :: Achieved: $95

Msg Box Code

Discussion in 'Information Technology' started by James New, Oct 29, 2005.

Tags:
  1. James New

    James New
    Expand Collapse
    Guest

    I am trying to reset my form to a new record when the Retry button is pressed
    on the message box that comes up on an error, I wrote the code to bring the
    msg box up, but now I am stuck and can not figure out how to activate ther
    retry button. Can someone please aid me in the task?
     
  2. Loading...


  3. Dirk Goldgar

    Dirk Goldgar
    Expand Collapse
    Guest

    "James New" <JamesNew@discussions.microsoft.com> wrote in message
    news:4F71E35A-6036-45C0-900E-AE77F73103C9@microsoft.com
    > I am trying to reset my form to a new record when the Retry button is
    > pressed on the message box that comes up on an error, I wrote the
    > code to bring the msg box up, but now I am stuck and can not figure
    > out how to activate ther retry button. Can someone please aid me in
    > the task?


    Something like this:

    If Msgbox( _
    "What do you want to do?", _
    vbRetryCancel + vbQuestion, _
    "Well?") _
    = vbRetry _
    Then
    Me.Undo
    If Not Me.NewRecord Then
    RunCommand acCmdRecordsGoToNew
    End If
    End If

    But obviously I don't know exactly what you're trying to do, or when
    you're trying to do it, so that's just a rough example.

    --
    Dirk Goldgar, MS Access MVP
    www.datagnostics.com

    (please reply to the newsgroup)
     
  4. James New

    James New
    Expand Collapse
    Guest

    Thank you for the help, that was exactly the information I needed to get me
    going again on this project.

    "Dirk Goldgar" wrote:

    > "James New" <JamesNew@discussions.microsoft.com> wrote in message
    > news:4F71E35A-6036-45C0-900E-AE77F73103C9@microsoft.com
    > > I am trying to reset my form to a new record when the Retry button is
    > > pressed on the message box that comes up on an error, I wrote the
    > > code to bring the msg box up, but now I am stuck and can not figure
    > > out how to activate ther retry button. Can someone please aid me in
    > > the task?

    >
    > Something like this:
    >
    > If Msgbox( _
    > "What do you want to do?", _
    > vbRetryCancel + vbQuestion, _
    > "Well?") _
    > = vbRetry _
    > Then
    > Me.Undo
    > If Not Me.NewRecord Then
    > RunCommand acCmdRecordsGoToNew
    > End If
    > End If
    >
    > But obviously I don't know exactly what you're trying to do, or when
    > you're trying to do it, so that's just a rough example.
    >
    > --
    > Dirk Goldgar, MS Access MVP
    > www.datagnostics.com
    >
    > (please reply to the newsgroup)
    >
    >
    >
     
Since you're here... we have a small favor to ask...

More people are visiting & reading SPN than ever but far fewer are paying to sustain it. Advertising revenues across the online media have fallen fast. So you can see why we need to ask for your help. Donating to SPN's is vote for free speech, for diversity of opinions, for the right of the people to stand up to religious bigotry. Without any affiliation to any organization, this constant struggle takes a lot of hard work to sustain as we entirely depend on the contributions of our esteemed writers/readers. We do it because we believe our perspective matters – because it might well be your perspective, too... Fund our efforts and together we can keep the world informed about the real Sikh Sikhi Sikhism. If everyone who writes or reads our content, who likes it, helps us to pay for it, our future would be much more secure. Every Contribution Matters, Contribute Generously!

    Become a Supporter      ::     Make a Contribution     



Share This Page