Problem with quering

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

Guest

I have created a query based on 5 vother query/tables. I am trying to
calculate the total cost over the 5 tables/queries. I am getting a blank
reslut page because the query is looking for each table to have the same
project name before giving me a result. In some cases the will not be an
entry for the project name on some queries/tables because nothing was chosen.
But anywho, how can I calculate a value over several tables but not having
them related?
 
..... because the query is looking for each table to
have the same project name before giving me a result.
Huh? Please explain what you mean by a table having a project name....
But anywho, how can I calculate a value over several
tables but not having them related?
Not sure why you have several tables without having them related. Access is a relational database
product, after all. It sounds like you may have a serious design issue going on here. However, to
answer your question, you can create a union query that includes the same number of fields drawn
from each table, as long as the datatypes for each field are the same. This will allow you to
select the appropriate records. You can then create a new query that uses the union query as it's
source, and performs the totaling operation.

Tom
_____________________________


I have created a query based on 5 vother query/tables. I am trying to
calculate the total cost over the 5 tables/queries. I am getting a blank
result page because the query is looking for each table to have the same
project name before giving me a result. In some cases the will not be an
entry for the project name on some queries/tables because nothing was chosen.
But anywho, how can I calculate a value over several tables but not having
them related?
 

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

my query does not update table 2
Quering Table 5
Joining Queries 1
problem with crosstab query 1
Data Mismatch in Excel 2010 4
Need help with this database 7
Running Total Cost 3
Access Updating inventory levels 0

Back
Top