Syntax Error - Cannot Produce Expression as Part of Aggregate Function

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Stevestan1
    New Member
    • Aug 2010
    • 27

    #1

    Syntax Error - Cannot Produce Expression as Part of Aggregate Function

    I am getting the "cannot produce expression ..... as part of aggregate function" error everytime I try to run a query with this expression

    Code:
    Pricing: IIf([New Run]![Key Account] Is Not Null And [New Run]![Date] <= [Centralization Occurance Dates]![Gl Date],"Pricing","None")
    New Run and Centralization Occurance Dates are the tables in the database and date, gl date, and key account are the columns in the tables. Anyone know why this expression isn't passing muster?
  • Delerna
    Recognized Expert Top Contributor
    • Jan 2008
    • 1134

    #2
    Post the whole query code.
    I would say you are using unaggregated fields in your expression

    Comment

    Working...