Results 1 to 2 of 2
  1. #1
    spideynok is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Mar 2012
    Posts
    48

    Computing using Query

    Hi! I had this formula on my Excel project.



    Code:
    =IF(ISBLANK(I4),"",(NETWORKDAYS(F4,I4,HolidayList)-1)*(DayEnd-DayStart)+IF(NETWORKDAYS(I4,I4,HolidayList),MEDIAN(MOD(I4,1),DayEnd,DayStart),DayEnd)-MEDIAN(NETWORKDAYS(F4,F4,HolidayList)*MOD(F4,1),DayEnd,DayStart))
    then I want to use it on MS Access, on my last code I change all the I4,F4 etc in my query and I put the column that it will compute, but there's an error appearing and Highlighting the word MOD.

    What can I do to make it correct? Thanks in Advanced

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    Show the Access version of the expression you attempted so we can analyse. Syntax for MOD function in Access/VBA would be: 8 Mod 3

    Also, there is no intrinsic Median or NetworkDays functions in Access/VBA. ISBLANK would probably become IsNull.
    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.

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

Similar Threads

  1. Computing an Average
    By ctrapper in forum Queries
    Replies: 12
    Last Post: 12-14-2011, 08:33 AM
  2. Computing Question
    By elvin0809 in forum Forms
    Replies: 3
    Last Post: 10-16-2011, 12:27 PM
  3. computing total sales per day using query
    By joms222 in forum Queries
    Replies: 0
    Last Post: 03-09-2009, 10:58 PM

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