Well, then it's not finding any columns at all for that table.
Try this code (it uses index numbers for the table, rows, columns so that if
the problem is the wrong table name you'll know):
'---Start by making certain that the dataset actually contains at least the
one table.
If ds.Tables(0) Is Nothing Then
Response.Write("Table Not Found!" & "<br>")
Else
'---Check if any rows exist
If ds.Tables(0).Rows.Count > 0 Then
Response.Write(ds.Tables(0).Rows.Count.ToString & "<br>")
Response.Write(ds.Tables(0).Rows(0).Columns(0).Col umnName)
Else
Response.Write("No Rows Found!")
End If
End If
--
Sincerely,
S. Justin Gengo, MCP
Web Developer / Programmer
www.aboutfortunate.com
"Out of chaos comes order."
Nietzsche
"Will Lastname" <> wrote in message
news: oups.com...
> It errors even if I try:
>
> response.write(ds.Tables("Table").Rows(0)("ColumnN ame"))
>
> I'm getting so frustrated with this.
>
> Thanks for helping out!
>