No Michel the sam prb was that he wasn't casting the datarow to the int, in c# you always need to cast to the specific type like you do in VB.NET when you have option strict on, I always use option strict on and recomend to anyone one using vb.net to do the same since it can help you find prbs on your app while your developing.
>
>I think this is related because this is not a datarow. I would suggest you use a datarow as you will be able to deal directly with the content of the field as is.
>
>As soon as you have a dataset, you can scroll into it like this:
>
>
> For lnCounter = 0 To lnYourRecordCountOfTheDataSetHere
> loRow = loDataProvider.oDataSet.Tables(YourAlias).Rows(lnCounter)
> lnAmount = loRow("MaxOrdAmt")
> Next
>
Alexandre Palma
Senior Application Architect