>I just panic.
>If I do this...
>
> strQuery = rdr["maxordamt"].ToString();
> namt = int.Parse(strQuery);
>
>It seems to work.
>I guess I just need to be more creative and put more thought into what I'm doing with C#.
>
>
>lnAmt = rdr["maxordamt"] gave me "Cannot implicitly convert object into string..." error message.
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