creating a count query from a union query

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How do I?

Any further select query I try based on a union query doesn't work
 
SELECT Count(*)
FROM [Name of Union query]

Does that work?

Also, you know that the column names for a union query are determined by the
first query clause in the Union query.

IF you can, post what you have tried. Also, post what you mean by "doesn't
work". That can mean - you don't get records back, you get the wrong
results, you get a syntac error, etc.
 
Something weird was going on but it seems to have worked now. When I said "it
doesn't work", the query would simply just not open, no error messages or
anything.

I did have a code error problem (which I posted in "general questions"). It
may have had something to do with that.

Apologies for the waste in time responding.

John Spencer said:
SELECT Count(*)
FROM [Name of Union query]

Does that work?

Also, you know that the column names for a union query are determined by the
first query clause in the Union query.

IF you can, post what you have tried. Also, post what you mean by "doesn't
work". That can mean - you don't get records back, you get the wrong
results, you get a syntac error, etc.


scubadiver said:
How do I?

Any further select query I try based on a union query doesn't work
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Union Query and Field Alias 7
Union query 5
Date Limit in Crosstab from Union query 2
Creating a parameter in a Union Query 2
UNION QUERY 2
Comlex union query question 4
Union Query 2
Union Query - Group & Sum 1

Back
Top