Results 1 to 3 of 3
  1. #1
    chivo123 is offline Novice
    Windows 2K Access 2010 64bit
    Join Date
    Jan 2012
    Posts
    24

    Average formula on access

    Hey all,
    I was wondering if I could be able to use the average formula on calls in forms.
    I have begin date, end date, agent name, and I would want to take the difference between those dates and returns the average of calls. I was successfully able to return the difference dates, but I can't get the average calls to work. Here is what I use for the average formula:



    =IIf([End Date]>[Date],DateDiff("d",[Date],[End Date])=Sum([Average wrap]),0). I put this formula inside TEXTBOX inside the form.

  2. #2
    aytee111 is offline Competent At Times
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    Are you showing all agents records on the form or one at a time? If all then this would be a total shown on the footer. If one at a time then you would do this in the record source.

  3. #3
    chivo123 is offline Novice
    Windows 2K Access 2010 64bit
    Join Date
    Jan 2012
    Posts
    24
    Thanks for the reply back, I'm doing this individually. Also, I have put this formula (=IIf([End Date]>[Date],DateDiff("d",[Date],[End Date])=Sum([Average wrap]),0) inside the control source, but it doesn't return me any values. It does return me the difference dates formula though which is this. =DateDiff("d",[Date],[End Date]).

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

Similar Threads

  1. Excel Formula Needed in Access
    By bmschaeffer in forum Queries
    Replies: 4
    Last Post: 01-18-2012, 01:13 PM
  2. Replies: 13
    Last Post: 05-28-2010, 11:57 AM
  3. access query formula
    By simpleman in forum Queries
    Replies: 6
    Last Post: 11-26-2009, 09:13 AM
  4. Replies: 0
    Last Post: 09-03-2009, 01:58 PM
  5. Max formula in Access
    By mohsin74 in forum Programming
    Replies: 2
    Last Post: 12-26-2006, 07:21 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