You're not showing it here so I have to ask. Where are you creating your
instance of MyDataList ?
I assume the exception is being thrown at line 11, where you're referencing
the MyDataList object.
Dave
"WUT" <WU*@discussions.microsoft.com> wrote in message
news:0B**********************************@microsof t.com...
BC30451: Name 'MyDataList' is not declared.
Source Error:
Line 9: dim ds as DataSet = new DataSet()
Line 10: objCmd.Fill(ds, "OIL_H")
Line 11: MyDataList.DataSource = ds.Tables("OIL_H").DefaultView
Line 12: MyDataList.DataBind()
Line 13: end sub