A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

=



 
 
Thread Tools Display Modes
  #1  
Old July 10th, 2008, 05:10 PM posted to microsoft.public.access.queries
blancla
external usenet poster
 
Posts: 2
Default =

I created this expression from other 2 expressions
Expr3: IIf([Expr1][Expr2],"MISS","HIT")

Expr1 is a variance from Field1 and Field2
Expr2 is Field2 x 2%
Expr3 should be a "HIT" if Expr1 is Expr2
or = should be a "MISS"

but when I have a large negative qty is making it a "HIT" when it should
really be a "MISS"
  #2  
Old July 10th, 2008, 05:30 PM posted to microsoft.public.access.queries
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default =

[Expr1] and [Expr2] are aliases create in the query. Do not use them in the
same query as you may be trying to use them BEFORE they are created.
Use their calculations like this --
Expr3: IIf((Whatever Expr1 is composed of)(Field2 x .02),"MISS","HIT")

--
KARL DEWEY
Build a little - Test a little


"blancla" wrote:

I created this expression from other 2 expressions
Expr3: IIf([Expr1][Expr2],"MISS","HIT")

Expr1 is a variance from Field1 and Field2
Expr2 is Field2 x 2%
Expr3 should be a "HIT" if Expr1 is Expr2
or = should be a "MISS"

but when I have a large negative qty is making it a "HIT" when it should
really be a "MISS"

 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:28 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.