I am using vb.net in visual studio 2005. I have a dataset in my project that contains multiple tables. I have used the dataset designer to add a new column to a table. I want to use an expression in the Expression Property to set the value for this column. The value should be a sum of a column in a different table in the dataset. I want to enter an expression into the Expression Property to do this. I have tried the following:
Select Sum(columnname) From tablename
I get the following error:
Property value is not valid.
Syntax error: Missing operand after 'sum' operator
Can this be done? If so, what is the correct syntax for the sql expression? Thanks.
Select Sum(columnname) From tablename
I get the following error:
Property value is not valid.
Syntax error: Missing operand after 'sum' operator
Can this be done? If so, what is the correct syntax for the sql expression? Thanks.