R
Randy
Hi,
I have a table which contains a unique value in a column called "Idx",
which is a smallint data type. I need to find the maximum value in
this column, which I have been attempting to do with this command:
Dim intMaxIdx As Integer = CInt(Me.ds.myTable.Compute("MAX(Idx)",
Nothing))
I noticed that this command treats the values like strings rather than
integers. For example, if I have a value of 2 and a value of 11, the
value 2 is returned as the maximum value. I can't figure out how to
execute this so that it handles them like numbers, not strings.
Can anybody suggest anything?
Thanks,
Randy
I have a table which contains a unique value in a column called "Idx",
which is a smallint data type. I need to find the maximum value in
this column, which I have been attempting to do with this command:
Dim intMaxIdx As Integer = CInt(Me.ds.myTable.Compute("MAX(Idx)",
Nothing))
I noticed that this command treats the values like strings rather than
integers. For example, if I have a value of 2 and a value of 11, the
value 2 is returned as the maximum value. I can't figure out how to
execute this so that it handles them like numbers, not strings.
Can anybody suggest anything?
Thanks,
Randy