Hi!
I run a Pass through query against a SQL-Server from Access 2010.
I have a field TimeWorked which has values like 1899-12-30 03:30:00.000, for 3:30 hours and a field PaymentPerHour with values like 10.50 (for EUR 10,50).
The result schould be 36,75 (36.75).
I tried to calculate like this:
Round(convert(varchar,[TimeWorked],104)*1440*[PaymentPerHour ]/60,2) AS TtlPayment
In an Access query it works with the connected table in the accb, but not against the server.
I get a lot different errors when trying to convert into int, datetime, etc. but could not solve my problem.
Pls help me to calculate the result.
Thanks
Michael
I run a Pass through query against a SQL-Server from Access 2010.
I have a field TimeWorked which has values like 1899-12-30 03:30:00.000, for 3:30 hours and a field PaymentPerHour with values like 10.50 (for EUR 10,50).
The result schould be 36,75 (36.75).
I tried to calculate like this:
Round(convert(varchar,[TimeWorked],104)*1440*[PaymentPerHour ]/60,2) AS TtlPayment
In an Access query it works with the connected table in the accb, but not against the server.
I get a lot different errors when trying to convert into int, datetime, etc. but could not solve my problem.
Pls help me to calculate the result.
Thanks
Michael