Consulting

Page 2 of 2 FirstFirst 1 2
Results 21 to 32 of 32

Thread: Pop up hint messagebox

  1. #21
    VBAX Mentor
    Joined
    Aug 2010
    Posts
    457
    Location
    Thanks for you help

  2. #22
    VBAX Expert Imdabaum's Avatar
    Joined
    Jun 2006
    Posts
    652
    Location
    And if they click NO, would you want to perhaps undo their action?
    Someday I'll understand everything...
    Even then...I'll still pretend I'm a beginner.

  3. #23
    VBAX Mentor
    Joined
    Aug 2010
    Posts
    457
    Location
    Private Sub Status_BeforeUpdate(Cancel As Integer)

    End Sub

    this is the event procedure

  4. #24
    Quote Originally Posted by wedd
    I've managed to create an information message box...but I want to achieve that when the user clicks on the drop down list a yes/no button has to be click to confirm their action

    Private Sub cboSheets_AfterUpdate()

    If Me.cboSheets = "Term Sheet" Then

    If MsgBox("Please confirm (Y/N) that the an active mandate has been agreed and therefore an engagment letter has been agreed and signed with the client", vbYesNo, "Confirm") = vbYes Then
    Me.chkAgreed = True
    Else
    Me.chkAgreed = False
    End If

    Else

    Me.chkAgreed = False
    End If

    If MsgBox(prompt, vbYesNo, title) = vbYes Then
    MsgBox ("You clicked Yes")
    Else
    MsgBox ("You clicked no")
    End If

    End Sub

    Try this:

    Private Sub cboSheets_AfterUpdate()
    
     If Me.cboSheets = "Term Sheet" Then
     
       If MsgBox("Please confirm (Y/N) that the an active mandate has been  agreed and therefore an engagment letter has been agreed and signed with  the client", vbYesNo, "Confirm") = vbYes Then
              Me.chkAgreed = True
             MsgBox ("You clicked Yes")
       Else
              Me.chkAgreed = False
        MsgBox ("You clicked no")
       End If
     
     Else
       
           Me.chkAgreed = False
     End If
     
    End Sub
    Boyd Trimmell aka HiTechCoach
    Microsoft Access MVP -2010-2015

    Programming: Nine different ways to do it right, a thousand ways to do it wrong.
    Binary--it's as easy as 1-10-11

  5. #25
    VBAX Mentor
    Joined
    Aug 2010
    Posts
    457
    Location
    I used a macro for the information message box but there isn't an option for a yes/no option...hence why i'm interested in writing a vba script...I add this code to a list box/combo box...the field with the drop down list is called status and the the database is called The Deal Log

  6. #26
    VBAX Mentor
    Joined
    Aug 2010
    Posts
    457
    Location
    I've added the code to the event procedure...when I click on the option I want nothing happens...the code is right..just not sure why it's not creating the prompt... :-S

  7. #27
    Quote Originally Posted by wedd
    I've added the code to the event procedure...when I click on the option I want nothing happens...the code is right..just not sure why it's not creating the prompt... :-S
    Again, please post the VBA code.
    Boyd Trimmell aka HiTechCoach
    Microsoft Access MVP -2010-2015

    Programming: Nine different ways to do it right, a thousand ways to do it wrong.
    Binary--it's as easy as 1-10-11

  8. #28
    VBAX Expert Imdabaum's Avatar
    Joined
    Jun 2006
    Posts
    652
    Location
    Quote Originally Posted by wedd
    I used a macro for the information message box but there isn't an option for a yes/no option...hence why i'm interested in writing a vba script...I add this code to a list box/combo box...the field with the drop down list is called status and the the database is called The Deal Log
    Unfortunately, there is no way to do a vbYesNo messagebox within a macro.
    Someday I'll understand everything...
    Even then...I'll still pretend I'm a beginner.

  9. #29
    VBAX Mentor
    Joined
    Aug 2010
    Posts
    457
    Location
    So, I realised and it seems as if it's impossible to add vba code yes/no to an existing combo box...thanks for your help I'll just create it as an alert messsage box through a macro...thanks for your assistance. :-)
    Last edited by wedd; 09-01-2010 at 05:59 AM.

  10. #30
    VBAX Mentor
    Joined
    Aug 2010
    Posts
    457
    Location
    thanks for your assistance

  11. #31
    Quote Originally Posted by wedd
    ... impossible to add vba code yes/no to an existing combo box...
    You can everything to an existing combo box that you can add to a new one.
    Boyd Trimmell aka HiTechCoach
    Microsoft Access MVP -2010-2015

    Programming: Nine different ways to do it right, a thousand ways to do it wrong.
    Binary--it's as easy as 1-10-11

  12. #32
    VBAX Expert Imdabaum's Avatar
    Joined
    Jun 2006
    Posts
    652
    Location
    Can you please describe what you want to happen in the event they click yes, and also what will happen if they click no.
    Someday I'll understand everything...
    Even then...I'll still pretend I'm a beginner.

Posting Permissions

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