Hi To all those that read my topic.
I have managed to figure the problem out by using a datalist. I was looking at the problem to in such a complex manner I failed to spot the obvious I have pasted my code below.
If (Request.QueryString("id") <> "") Then
objCmd = New OleDbCommand("SELECT [p].[name], [p].[playerid], [p].[description], [p].[picture1], [p].[picture2], [p].[height], [p].[dob]," & _
"[pp].[description] AS [position] FROM [player] as [p], [playerposition] as [pp]" & _
"WHERE [pp].[positionid]=[p].[positionid] AND p.playerid=" & Request.QueryString("id"), objConn)
objRdr = objCmd.ExecuteReader()
dlPlayerDetails.DataSource = objRdr
dlPlayerDetails.DataBind()
dgFirstTeam.visible = "false"
objRdr.Close()
etc etc......
Where I have 'bolded' the text was my discovery. Before I was literally putting the names of the tables in and not the actual query.
Hope that makes sense and helps anyone in the same problem.
Regards,
Paul.
Hutchyman
Just Remember
Never Give Up.
|