Good Morning Ken and John,
Thanks for your suggestions, but neither seem to be working. Both of these
suggestions generated Overflow errors. (I've since removed the other
fields
from my query and now I only have "status" "Ptype = res" "now list" "orig
list" and the calculated field. I did this in case something else in the
query might have bolluxed this up.
For all queries, the Ptype criteria: res. (pulls residential property
only, not lots/land or mobile homes, or commercial etc.)
Status is a separate field in the query, which I can easily set=a to pull
only available properties. Status is the first criteria field in the
query
(far left in design view). I've placed my calculated field "last" in the
far right column of the design view grid, if that matters.
Here is what I've experimented with, and the results
#1
field: oops: (([Now List]/[Orig List])<=0.85)
total: where
criteria: true
and set the "status field" criteria to "a"
which yeilds an Overflow error
#2 Next I tried this:
Field: oops: ([Now List]/[Orig List])
total: where
criteria: <.84999
and set the "status field" criteria to "a"
this generated an overflow error
#3 Next I tried this:
field DoDontUse: ([Status]="a") And (([Now List]/[Orig List])<=0.85)
total: where
criteria: True
and set the "status field" criteria to "a"
this generated an overflow error.
#4 Next I tried this:
field DoDontUse: ([Status]="a") And (([Now List]/[Orig List])<=0.85)
total: where
criteria: True
and set the "status field" criteria to ""
this generated an overflow error.
I am very confused now. I've checked the table containing both Orig and
Now and both fields are set up as NUMBER data types, field size "double"
type "currency" and for some reason Orig is set to 2 decimal places and
Now
is set to 0 decimal places. ..if this means anything.
I know this is asking a lot, but would you consider this? I can create an
excel file containing these five fields and X records (10-20 should be
plenty) and attach/send it to you? I have a feeling you guys could import
this info into an access table and write a query that would achieve what I
need.
I've accessed Access help and tried to find what an Overflow is/does and
it
doesn't seem to make sense to me when used in a query context.
Any clues or suggestions would be appreciated! Thanks for you attention
and
advice so far, too!
-Steve
Ken Snell said:
And change the [a] in the calculated field to "a":
Field: DoDontUse: ([Status]="a") And (([Now List]/[Orig List])<=0.85)
Table: blank
Total: Where
Sort: blank
Criteria: True
--
Ken Snell
<MS ACCESS MVP>
John Vinson said:
On Fri, 28 Jan 2005 23:29:25 -0600, "Steve Freeman, SuperRealtor"
Ok, I opened my query in design view and added a calculated field. (First
time I've added a calculated field to a query btw) I suppose I named the
field "oops" which stands for Originally Overpriced PropertieS. What I am
trying to do is generate a report of available homes that were either way
overpriced from the beginning (Orig List) and/or are selling at a discount
price today (Now List).
Here is my new calculated field:
Field: oops: [Now List]/[Orig List]
Table: blank
Total: Group By
Sort: blank
Criteria: True
Try changing the Total operator to Where, and the Criteria to
< 0.85
John W. Vinson[MVP]