Hello,
I am having some problems in creating Sum queries for my db.
My db has a table named Clients with 3 fields:
- Clients
- Paymentdate
- Paymentamount
My db has also a form form with a combo box (cboclients) used to select the client's name and two text boxes (txtTo and txtFrom) used to select the range of dates of the payments.
On the same form a cmdbutton runs without any problems a generic Sum query based on the table Clients, whith the fields PaymentDate and Paymentamount. This query returns the total amount of payments done by all the clients.
I would now like to create a spcific Sum query with the fields PaymentDate, Paymentamount and Clients in order to have the total amount of payments done by each clients selected in the cbobox.
I would appreciate your help in designing this query and eventually if it would be a good idea to use a text box to display the results of both queries.
Thank you
I am having some problems in creating Sum queries for my db.
My db has a table named Clients with 3 fields:
- Clients
- Paymentdate
- Paymentamount
My db has also a form form with a combo box (cboclients) used to select the client's name and two text boxes (txtTo and txtFrom) used to select the range of dates of the payments.
On the same form a cmdbutton runs without any problems a generic Sum query based on the table Clients, whith the fields PaymentDate and Paymentamount. This query returns the total amount of payments done by all the clients.
I would now like to create a spcific Sum query with the fields PaymentDate, Paymentamount and Clients in order to have the total amount of payments done by each clients selected in the cbobox.
I would appreciate your help in designing this query and eventually if it would be a good idea to use a text box to display the results of both queries.
Thank you