G
Guest
I am trying to utilize a Union Query and need help regarding the proper syntax.
What I want to do is change the following code into a union query so that
the tblRaceData.P1Avg is added to the SQLRaceList without removing records
upon which valid data does not exist. In other words, if I start with 1000
records in table a, I still want to end up with the same 1000 records but
have the new data stored accordingly in tmpET.
strSQL = "SELECT SQLRaceList.HN, SQLRaceList.Program, " & _
"SQLRaceList.Race, tblRaceData.P1Avg INTO tmpET " & _
"FROM SQLRaceList " & _
"LEFT JOIN tblRaceData ON SQLRaceList.HN = tblRaceData.HN"
Thanks for looking at this for me and I hope I explained what I am trying to
accomplish.
What I want to do is change the following code into a union query so that
the tblRaceData.P1Avg is added to the SQLRaceList without removing records
upon which valid data does not exist. In other words, if I start with 1000
records in table a, I still want to end up with the same 1000 records but
have the new data stored accordingly in tmpET.
strSQL = "SELECT SQLRaceList.HN, SQLRaceList.Program, " & _
"SQLRaceList.Race, tblRaceData.P1Avg INTO tmpET " & _
"FROM SQLRaceList " & _
"LEFT JOIN tblRaceData ON SQLRaceList.HN = tblRaceData.HN"
Thanks for looking at this for me and I hope I explained what I am trying to
accomplish.