Nancy,
Thank you so much for the suggestion. I will try using ExecuteScalar().
>Dmitry-
>
>>I am using ExecuteNonQuery(). Are you suggesting that I can call to SP using ExecuteScalar() and return a value?
>
>Yep. That should do the trick for you. ExecuteNonQuery will always return the number of rows affected. ExecuteScalar will return the result of the Stored Procedure.
>
>For example, I have a stored procedure that creates a record and returns the ID of the record similar to the help example,
>
>Int32 id = (int32) ExecuteScalar();
>
>
>HTH.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham