If my [Customer Total] field is '530' the folllowing statement works fine:
but if the [Customer Total] is '530.68' i get the following error:VB Code:
rs.Open "Select SUM (Cast([Customer Total] as Integer)) as TOTAL From Paid WHERE Customer = '" & strText & "'", cn
[Syntax error converting the nvarchar value '530.68' to a column of data type int.]
Any ideas ?![]()


Reply With Quote
