Results 1 to 3 of 3
  1. #1
    4 Star Lounger
    Join Date
    Oct 2002
    Location
    Sayre, Pennsylvania, USA
    Posts
    504
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Query Error Message (2000)

    I have created a query that is based off of a UNION ALL query. I have 5 fields from the union query and 3 calculated fields. When I bring down the fields from the union query and run it, I get the following error message. " You tried to execute a query that does not include the specified expression 'txtVendorName' as part of an aggregate function." It will run when I take those fields out and just leave the calculations in and it gives me the right calculations. What am I doing wrong?
    Thanks,
    Deb

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 28 Times in 28 Posts

    Re: Query Error Message (2000)

    I'm afraid that you will have to provide detailed information about your query. Perhaps you can start by posting the SQL for the query.

  3. #3
    4 Star Lounger
    Join Date
    Oct 2002
    Location
    Sayre, Pennsylvania, USA
    Posts
    504
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Query Error Message (2000)

    Thanks Hans. I think I have to change my train of thought. Thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •