Results 1 to 5 of 5
  1. #1
    tooold is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2013
    Posts
    7

    Question A silly question: How can I create a dialogue box with 2 buttons: Yes and No

    I am quite new with Access and programming and trying to do this: Before opening a form, I want to put a dialogue box so that if the user chooses YES, the form will be opened, If NO then it will go to the previous opened form.


    I tried to look around the macro section but there is no such thing. So what would be a solution? Appreciate any help

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Can you create the Yes/No MsgBox?

  3. #3
    tooold is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2013
    Posts
    7
    Please be more specific: where is that Yes/No Mess Box? In Macro Section no such thing

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,900
    Bing: Access macro MsgBox yes no

    Here is one http://www.access-programmers.co.uk/...d.php?t=201004
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    pradeep.sands is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2013
    Posts
    49
    You can write your VBA something like this:
    Dim Response As Variant
    Response = MsgBox("Do you want to open this form?", vbYesNo)
    If Response = vbYes Then
    DoCmd.OpenForm ........
    Else
    'Do Nothing

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 3
    Last Post: 01-20-2013, 01:14 AM
  2. Change Text in Parameter Dialogue Box
    By Traceyann in forum Queries
    Replies: 5
    Last Post: 08-29-2012, 10:49 PM
  3. Silly error on a simple function call - help
    By allenjasonbrown@gmail.com in forum Programming
    Replies: 5
    Last Post: 06-10-2011, 01:23 PM
  4. Silly question
    By HelenP in forum Forms
    Replies: 1
    Last Post: 11-23-2010, 11:25 AM
  5. SaveAs Dialogue box
    By saqqer in forum Programming
    Replies: 8
    Last Post: 09-10-2009, 10:49 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums