I hope I can explain the issue I'm having suffiently ... in any case here it is:
I connected to the SQL server successfully but I'm having problems generating my reports anyway. And I suspect it's due to the & "" below ... but if I remove them I get an error too.
Code:
Field1.DataValue = !SumOfASal & ""
Field2.DataValue = !SumOfAAwd & ""
Field3.DataValue = !SumOfABen & ""
Field4.DataValue = !SumOfAOT & ""
Here's an example of my problem:
--------------------------------
Problem is:
If
SumOfASal = 13088.86
SumOfAAwd = 4925
SumOfABen = 1000.92
SumOfAOT = 526.96
and
Field5.DataValue = Field1.DataValue + Field2.DataValue + Field3.DataValue + Field4.DataValue
the result being generated becomes: 13088.8649251000.92526.96 instead of 19541.74
which is creating a Type mismatch.
------------------------------------------
How can I fix this?
Thanks in advance.