Paul,
If it isn't working that means your code is likely throwing an exception.
But - you don't have it wired up to catch exceptions. Wrap the whole thing
in a try / catch block and in the catch block you can output the exception's
Message and StackTrace properties to the debug window and even set a
breakpoint on the debug.WriteLine statement and mouse over the exception
object to examine it with Text Visualizer from Intellisense. That's faster
than asking questions on newsgroups and waiting around for answers!
-- Peter
Recursion: see Recursion
site:
http://www.eggheadcafe.com
unBlog:
http://petesbloggerama.blogspot.com
BlogMetaFinder:
http://www.blogmetafinder.com
"Paul W Smith" wrote:
> Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
>
> [connection object creation]
>
> Dim sSQL As String = "SELECT * FROM tPlayers"
>
> Dim myAdapter As OleDbDataAdapter = New
> OleDbDataAdapter(sSQL,myConnection)
>
>
> Dim MyDataSet As New DataSet
>
> myAdapter.Fill(MyDataSet)
>
>
> GridView1.DataSource = MyDataSet
>
> GridView1.DataBind()
>
> myConnection.Close()
>
> End Sub
>
>
> I know the connection object is good because I use it else where, I have
> edited out from the event above.
>
> I have the require Namespaces , so it must be syntax, but I cannot for the
> life of me see what the problem is.
>
> Can anyone else?
>
>
>