Results 1 to 4 of 4
  1. #1
    alphabetsoup is offline Novice
    Windows Vista Access 2007
    Join Date
    Oct 2011
    Posts
    4

    Suppressing a msgbox

    I'm being driven crazy and there must be a way to do this, or at least a way to change my form so that what I need to happen actually happens.



    My form...this is a check out system. A user will type in the record number and the type of record will appear, as will a check box, a box for student name, and a box for check out date.

    If the record is being checked out, the user will click the checkbox. When that checkbox is clicked, I need a message box to popup that says "Please enter student name and check out date". I managed to accomplish this using the expression builder.

    NOW...when that checkbox is unselected...how can I get that message to NOT appear? It appears on click, but I only need it to appear if the box is checked.

    I can't get any conditions to work, in fact, I'm pretty sure I'm not even writing them correctly. If this isn't possible, does anyone have any other ideas for the design of this and how I need it to work?

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,529
    In VBA code:

    If Me.CheckboxName = True Then
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    alphabetsoup is offline Novice
    Windows Vista Access 2007
    Join Date
    Oct 2011
    Posts
    4
    For crying out loud. I've spent 2 hours trying to get that to work. Maybe I had looked at it for too long or something (I started this on Sunday). Thank you for your help, that worked exactly as I wanted it to!

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,529
    LOL! Happy to help, and welcome to the site by the way. Also, you can shorten that to:

    If (Me.CheckboxName) Then

    which is less intuitive but less typing.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Caution MsgBox
    By rovman in forum Access
    Replies: 1
    Last Post: 10-02-2011, 05:40 PM
  2. MsgBox
    By Mtyetti in forum Forms
    Replies: 4
    Last Post: 07-27-2011, 01:51 PM
  3. Suppressing duplicate results
    By jonesy29847 in forum Reports
    Replies: 5
    Last Post: 04-22-2010, 12:43 PM
  4. Suppressing #Name? Error
    By Jess_Wundring in forum Programming
    Replies: 2
    Last Post: 04-15-2010, 12:43 AM
  5. Replies: 3
    Last Post: 10-15-2009, 12:24 PM

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