R
rich
hello,
I am trying to write a Select query that computes a value. My Sales table
has 5 columns, IDNumber, Q1Sales - Q4Sales. I want the query to compute a
total (Q1Sales + Q2Sales.....). Right now, my query is:
SELECT tblSales.Q1Sales, tblSales.Q2Sales, tblSales.Q3Sales,
tblSales.Q4sales, [Total] AS [Total Sales]
FROM tblSales
WHERE ((([Total])="q1sales"+"q2sales"+"q3sales"+"q4sales"));
When I run the query, I am prompted for "Total". Can anyone tell me why
this is happening?
Thanks,
Rich
I am trying to write a Select query that computes a value. My Sales table
has 5 columns, IDNumber, Q1Sales - Q4Sales. I want the query to compute a
total (Q1Sales + Q2Sales.....). Right now, my query is:
SELECT tblSales.Q1Sales, tblSales.Q2Sales, tblSales.Q3Sales,
tblSales.Q4sales, [Total] AS [Total Sales]
FROM tblSales
WHERE ((([Total])="q1sales"+"q2sales"+"q3sales"+"q4sales"));
When I run the query, I am prompted for "Total". Can anyone tell me why
this is happening?
Thanks,
Rich