Results 1 to 5 of 5

Thread: msgbox (2000)

  1. #1
    4 Star Lounger
    Join Date
    May 2003
    Location
    Manchester, Gtr Manchester, England
    Posts
    552
    Thanks
    0
    Thanked 0 Times in 0 Posts

    msgbox (2000)

    Hi, I have an option group where if a certain one is selected a message shows asking if the user is certain of the option selection, if this answer is ok I would like an outlook template to fire up. How can I code this?

    Thanks Darren.

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: msgbox (2000)

    Are you asking how to write the code for the message box, or for starting the Outlook template, or both?

  3. #3
    4 Star Lounger
    Join Date
    May 2003
    Location
    Manchester, Gtr Manchester, England
    Posts
    552
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: msgbox (2000)

    Thanks Hans, I would like maybe to have a button on the messagebox that fires up a template I have already made or maybe on ok click the e mail opens.

    Darren.

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: msgbox (2000)

    The built-in MsgBox function only provides fixed button combinations, such as OK+Cancel, Yes+No etc. If you want a custom button, you must create a form in Access. You could use a standard message box like this:

    If MsgBox("Do you want to create a new e-mail?", vbYesNo + vbQuestion) = vbYes Then
    ' Code to create e-mail goes here, for example
    DoCmd.SendObject To:="loungeadmin@wopr.com", Subject:="Test", _
    MessageText:="Hi there!", EditMessage:=True
    End If

    I don't know how to use a specific template.

  5. #5
    4 Star Lounger
    Join Date
    May 2003
    Location
    Manchester, Gtr Manchester, England
    Posts
    552
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: msgbox (2000)

    Hans that will do nicely.

    Thanks Darren.

Posting Permissions

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