Bubbis Thedog
Well-known Member
- Joined
- Jul 29, 2004
- Messages
- 967
Hello, all! This is my first post to the Access forum, and I could use some guidance, if possible...
Suppose I have Table1 with 3 records:
... and Table2 with 1 record:
I'd like to write a query that returns a column that adds amounts only for those records with the same "Line." The final table (query) should look like this:
I've tried to get several SQL statements to work, but cannot. Any help would be greatly appreciated!!!
Bubbis
Suppose I have Table1 with 3 records:
Code:
Month Line Amount
January CM 10
January NBR 20
January FIN 30
... and Table2 with 1 record:
Code:
Month Line Amount
February NBR 40
I'd like to write a query that returns a column that adds amounts only for those records with the same "Line." The final table (query) should look like this:
Code:
Line Year to Date
CM 10
NBR 60
FIN 30
I've tried to get several SQL statements to work, but cannot. Any help would be greatly appreciated!!!
Bubbis