Results 1 to 4 of 4
  1. #1
    mbenton's Avatar
    mbenton is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Jul 2015
    Posts
    73

    Forced comments if box is checked.

    Hello everyone, I've created a form based off one of my tables. One field is a "Reject" yes/no box. The other field is "Comments". I would like user not to be able to navigate to the next record if comments are not given for the checked reject box. On this same form I also have a macro that will execute a query to append these rejects to a table. However, prior to executing the macro I want comments to be present if the reject box is checked. Can anyone help with this? Or give me some examples forcing comments if other conditions are met? Thanks.

  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,652
    I'd convert the macro to VBA, where you can easily test the yes/no box and then the comments. With a 2007 macro I think you can use a condition, but I think it might be clunky. Later versions have If/Then logic.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    mbenton's Avatar
    mbenton is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Jul 2015
    Posts
    73
    I prefer your approach. Currently the macro only executes an append query but I'm much rather combine the steps. I'm a beginner in VBA so I'll have to search for the coding, thanks.

  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,652
    No problem, post back if you get stuck.
    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. Replies: 7
    Last Post: 03-17-2016, 10:42 AM
  2. Auditing changes and Forced input.
    By Homegrownandy in forum Database Design
    Replies: 8
    Last Post: 10-21-2015, 06:22 AM
  3. Replies: 6
    Last Post: 04-09-2015, 08:57 PM
  4. Checked Box + Date = Checked box
    By ItsATJ in forum Access
    Replies: 12
    Last Post: 09-03-2013, 10:25 AM
  5. Forced page breaks - I know really something quite simple
    By kw@officeadminsolutions in forum Reports
    Replies: 3
    Last Post: 05-16-2011, 12:17 AM

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