Results 1 to 3 of 3
  1. #1
    tennisbuck is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Jun 2012
    Posts
    51

    Average Days Between Orders (Recordset)

    Hi,

    Does anyone have or can help to write VBA that would loop through a dataset and figure out days between orders? I posted an example where I can do this easily in excel but in access I'm unsure.

    Thanks,



    Mike
    Attached Files Attached Files

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    I did not look at your sample but have you considered the DateDiff() function?

  3. #3
    tennisbuck is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Jun 2012
    Posts
    51
    Yes, and that would work if I only had 2 dates but there will be multiple orders

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

Similar Threads

  1. Replies: 6
    Last Post: 12-03-2013, 11:14 PM
  2. Computing Average of Field of Dates in Days
    By halt4814 in forum Access
    Replies: 7
    Last Post: 11-29-2012, 12:27 PM
  3. Replies: 2
    Last Post: 03-08-2012, 12:59 PM
  4. Select Dates between days and two days ago?
    By rstonehouse in forum Queries
    Replies: 4
    Last Post: 08-18-2010, 02:13 AM
  5. Replies: 13
    Last Post: 05-28-2010, 11:57 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