Add one more change to it:
if (userDS.Tables[0].Rows.Count == 1)
The square brackets ... in C# square brackets are used for collections, whereas parentheses are used in VB.
~~Bonnie
>Hey, JB...
>
>I believe you said this was the offending line...
>
> if userDS.Tables(0).Rows.Count = 1
>
>If you change it to this, it should be OK...
>
> if (userDS.Tables(0).Rows.Count == 1)
>
>note that in C, one '=' is for assignment, two '==' for comparison.
>
>HTH...
>
>Kevin