Results 1 to 3 of 3
  1. #1
    amai is offline Novice
    Windows 8 Access 2010 32bit
    Join Date
    Nov 2015
    Posts
    12

    DAVG in query

    I am trying to do the following expression in a query. Can someone help me to identify the problem and please explain the solution?



    DAvg("[Exchange_Rate_Qry]![TO_Exchange_Rate]","[Exchange_Rate_Qry]","[Exchange_Rate_Qry]![TO_Number]='"& [Invoices_View_All]![Contract_Number] & '")

    TO_Exchange_Rate is a number field. Everything else are strings.

  2. #2
    Perceptus's Avatar
    Perceptus is offline Expert
    Windows 7 64bit Access 2007
    Join Date
    Nov 2012
    Location
    Knoxville, Tennessee
    Posts
    659
    I want to say you should be using like

    DAvg("[Exchange_Rate_Qry].[TO_Exchange_Rate]","[Exchange_Rate_Qry]","[Exchange_Rate_Qry].[TO_Number]='"& [Invoices_View_All].[Contract_Number] & '")

  3. #3
    amai is offline Novice
    Windows 8 Access 2010 32bit
    Join Date
    Nov 2015
    Posts
    12
    Awesome! That worked.

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

Similar Threads

  1. Using DAvg function
    By GraeagleBill in forum Programming
    Replies: 2
    Last Post: 04-03-2015, 11:03 AM
  2. DAvg Not Working
    By BLFOSTER in forum Forms
    Replies: 3
    Last Post: 04-21-2014, 11:14 AM
  3. Davg Multiple Criteria Syntax
    By JonathanT in forum Programming
    Replies: 1
    Last Post: 10-30-2013, 10:16 PM
  4. DAvg with multiple criteria help
    By mphynson44 in forum Access
    Replies: 4
    Last Post: 10-03-2013, 02:17 PM
  5. Problem with DAvg function
    By averagejoe in forum Access
    Replies: 1
    Last Post: 10-05-2012, 05:43 AM

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