Results 1 to 5 of 5
  1. #1
    sha1023012 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2012
    Posts
    9

    Query to calculate


    Ok I am still learning access i am trying to add a calcualte field name DaysToShipp to calculate the number of days taken to fill each order.The expression will include the orderdate and the shipped date; the results will not contain negative numbers. This is the code but it dont look right to me. Below is a picture of it.
    Click image for larger version. 

Name:	Untitled2.jpg 
Views:	10 
Size:	62.7 KB 
ID:	9485

  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,521
    Check out the DateDiff function.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    sha1023012 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2012
    Posts
    9
    I am trying with the DateDiff but I can not get that one to work either.

  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,521
    Not knowing what you've tried or how it failed, I'm stumped.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    sha1023012 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2012
    Posts
    9
    I figure it out.

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

Similar Threads

  1. Calculate a column in a query
    By FormerJarHead in forum Queries
    Replies: 6
    Last Post: 10-03-2012, 11:57 AM
  2. Calculate Date in Query
    By raytackettsells in forum Programming
    Replies: 8
    Last Post: 03-23-2012, 01:44 PM
  3. calculate new value in expression in query
    By Waldo in forum Programming
    Replies: 11
    Last Post: 09-23-2011, 09:48 AM
  4. Calculate average in a query
    By srbooth in forum Queries
    Replies: 1
    Last Post: 02-20-2010, 09:41 AM
  5. Calculate problem in query
    By crujazz in forum Queries
    Replies: 2
    Last Post: 06-15-2009, 08:03 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