dear master, sorry if my question is dumb...
i using vbnet and accdb database
in my daylySales table i have 'date', 'salesman', 'item', and 'price' columns.
i want to sum 'price' according to a 'salesman' and 'date'
here i had query: "SELECT SUM(price) FROM daylysales WHERE date='" & txtDate.Text & "' AND salesman='" & txtSalesman.Text & "'"
my question is how to insert query result to a textbox? what syntax is used?
please if someone can give me the code...
thanks for advanced...
i using vbnet and accdb database
in my daylySales table i have 'date', 'salesman', 'item', and 'price' columns.
i want to sum 'price' according to a 'salesman' and 'date'
here i had query: "SELECT SUM(price) FROM daylysales WHERE date='" & txtDate.Text & "' AND salesman='" & txtSalesman.Text & "'"
my question is how to insert query result to a textbox? what syntax is used?
please if someone can give me the code...
thanks for advanced...