PC Review


Reply
Thread Tools Rate Thread

Criteria on field calculated form another calculated field

 
 
Max Moor
Guest
Posts: n/a
 
      22nd Dec 2004
Hi All,
I have a query with a number of calculated fields. Further, one of
the fields is calculated using values from the other calculated fields.
Everything worked fine...

Then I decided I'd like to filter the query on the "calulated from
calculated" field. The criteria is simply "> 0." When the query runs, it
prompts me for one of the calculated fields in the criteria'd field's
definition. Is this expected, and I'm just breaking a rule?

I can always expand the definition of the field I want to filter, so
that its definition contains only "table" fields, I guess. I'm already
doing some of the same math in another field returned by the query, though,
so it's redundant to do it that way, and that just doesn't digest well.

Can someone explain to me what is happening, and how I might best
deal with the situation?

Thanks,

Max
 
Reply With Quote
 
 
 
 
Allen Browne
Guest
Posts: n/a
 
      22nd Dec 2004
Yes, you need to repeat the entire expression in the WHERE clause (or in the
Filter expression) instead of referring to the calculated field by name.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Max Moor" <maxmoor@remove_hotmail.com> wrote in message
news:Xns95C71A8B9B05maxmoorhotmailcom@207.46.248.16...
> Hi All,
> I have a query with a number of calculated fields. Further, one of
> the fields is calculated using values from the other calculated fields.
> Everything worked fine...
>
> Then I decided I'd like to filter the query on the "calulated from
> calculated" field. The criteria is simply "> 0." When the query runs, it
> prompts me for one of the calculated fields in the criteria'd field's
> definition. Is this expected, and I'm just breaking a rule?
>
> I can always expand the definition of the field I want to filter, so
> that its definition contains only "table" fields, I guess. I'm already
> doing some of the same math in another field returned by the query,
> though,
> so it's redundant to do it that way, and that just doesn't digest well.
>
> Can someone explain to me what is happening, and how I might best
> deal with the situation?
>
> Thanks,
>
> Max



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Criteria from form on calculated field menube Microsoft Access Queries 5 27th Oct 2008 08:13 PM
Criteria for calculated field TeeSee Microsoft Access Form Coding 5 1st Jan 2008 11:36 AM
Updating field in table based on calculated field in form =?Utf-8?B?TWFjTnV0MjAwNA==?= Microsoft Access 4 21st May 2007 07:27 PM
criteria for calculated field =?Utf-8?B?amVy?= Microsoft Access Queries 1 6th Feb 2006 07:24 PM
Calculated field with criteria John Microsoft Access VBA Modules 3 26th May 2004 05:13 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:37 AM.