×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Query appears to ask 2 unrelated questions ? ? ?

Query appears to ask 2 unrelated questions ? ? ?

Query appears to ask 2 unrelated questions ? ? ?

(OP)
That's the error that I get when attempting to run this query.

CODE

..SFR..  | 2006-08.., calc count all, AS "SFR New Listings" |
..CONDO..| 2006-08.., calc count all, AS "CONDO New Listings" |

I never could figure out how to calculate same fields in the same table using different selection critiera. In this case ..SFR.. and ..CONDO..

Thanks. Rick

RE: Query appears to ask 2 unrelated questions ? ? ?

I've had problems with this too.  You need to make sure the results will be exactly the same, same name, same data type, same length (if it's a string).

In your example, your calculated fields do not have the same name, causing Paradox to see it as two separate queries.

You might be able to use a separate table with the date and calculated fields for the two types of New Listings.

Otherwise, you need to run two separate queries.  You might be able to set up a form or report with both queries on it, but I've had varying levels of success with that.

RE: Query appears to ask 2 unrelated questions ? ? ?

(OP)
Miros . . . if the results have the same name, then how can I determine which isi which?

Thanks . . .  Rick

RE: Query appears to ask 2 unrelated questions ? ? ?

Try:

CODE

..SFR..  | 2006-08.., calc count all, AS "New Listings" | calc "SFR  ", as "Type" |
..CONDO..| 2006-08.., calc count all, AS "New Listings" | calc "Condo", as "Type" |

This should give you two records with two fields each, "Type" and "New Listings"; note that there are two spaces after SFR so it has the same number of characters as Condo.  

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close