Results 1 to 4 of 4
  1. #1
    vicsaccess's Avatar
    vicsaccess is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Apr 2015
    Posts
    451

    conditional sum in a text box


    I have a form with work to be done and the number of hours of each job. also on this split form is a scheduled date the the scheduler enters a date during the weekly scheduling meeting. I have a unbound text box giving me a sum of total hours of all the work, can I put another unbound box for the total hours of all the scheduled work? I've been searching all morning and trying different things but none have worked. I would think something like =sum([hours]) where [scheduleddate] is not null but im setting syntax errors.

  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
    Try

    =Sum(IIf(IsNull(scheduleddate), 0, hours))
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    vicsaccess's Avatar
    vicsaccess is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Apr 2015
    Posts
    451
    thanks pbaldy, glad to see you back

  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
    Happy to help!
    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: 8
    Last Post: 07-14-2014, 04:02 PM
  2. Replies: 7
    Last Post: 08-21-2013, 09:14 AM
  3. Conditional Formatting of a text-box
    By GraeagleBill in forum Forms
    Replies: 9
    Last Post: 04-06-2013, 11:22 PM
  4. Conditional Formatting of Text Boxes
    By beribimba in forum Reports
    Replies: 2
    Last Post: 03-09-2012, 05:08 PM
  5. Conditional text box for two fields
    By hawkins in forum Access
    Replies: 9
    Last Post: 08-16-2011, 12:21 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