Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

"Enter Parameter Value" Appears Only When I Sort By a Field

$
0
0
Hello,
I use MS Access 2010, and I have queries with fields that sometimes refer to other fields in the same query.

For example, one query has three fields, each of which calculate the sales reps' percentage to quota for the reps' three different quotas. Then there's another field that calculates the reps' average percent to quota for all three.

This field calculates the correct amount, but if I include it in the "Order By" statement, then up pops the "Enter Parameter Value" dialog box. No matter what I type in the box, the query does not order by that field.

So I guess I have two questions:
1. Why can't Access sort by this field? If Access can calculate the field's values just fine, then sorting by those values should be a piece of cake, right?
2. Why does Access give me the "Enter Parameter Value" input box when it makes absolutely no difference what I type into it?

I realize that I would be able to get around this problem by making another query to refer to this one, but I already have multiple levels of queries referring to other queries; so I would rather keep the number of queries to a minimum.
I realize that I would also be able to get around this problem by not referring to the other calculated fields in the query and instead typing in the full calculations that the first fields are based on; however, when I do this, it often says "The string returned by the builder was too long."

Thank you very much for your help!

Viewing all articles
Browse latest Browse all 13329

Trending Articles