I apologise in advance at the simplicity of my question, but I'm stumped if I can figue it out! (-Newb-).
My database has 2 tables and a query:
tblPlayers (contains a rsPlayerID and rsPlayerName)
tblResults (contains rsPlayerName lookup to tblPlayers, rsPlayed and rsWon)
qryPlayers - Looks at tblResults and sums the played and won for each player.
Now I execute the query as thats what I want to display but when I run the SQL, I get back the PlayerID as opposed to the value in rsPlayerName.
Example
set rslea = server.createobject("ADODB.recordset")
sqllea = "EXEC qryPlayersTable"
sqllea2 = "SELECT * FROM qryPlayersTable ORDER BY WinPer DESC, SumOfWon DESC, PlayerName ASC"
I've trawled the net to try and find the answer, I simply want to convert the Primary key (Player_ID) back to the PlayerName contained in tblPlayers.
Thanks in advance!
My database has 2 tables and a query:
tblPlayers (contains a rsPlayerID and rsPlayerName)
tblResults (contains rsPlayerName lookup to tblPlayers, rsPlayed and rsWon)
qryPlayers - Looks at tblResults and sums the played and won for each player.
Now I execute the query as thats what I want to display but when I run the SQL, I get back the PlayerID as opposed to the value in rsPlayerName.
Example
set rslea = server.createobject("ADODB.recordset")
sqllea = "EXEC qryPlayersTable"
sqllea2 = "SELECT * FROM qryPlayersTable ORDER BY WinPer DESC, SumOfWon DESC, PlayerName ASC"
I've trawled the net to try and find the answer, I simply want to convert the Primary key (Player_ID) back to the PlayerName contained in tblPlayers.
Thanks in advance!