I'm probably doing something wrong, since I'm pretty inexperienced with SQL, but I'm trying to insert values into one table from another, where 3 other column values are equivalent.
and then later
It's not throwing any errors, but when I open up the target table, nothing has been added. I'm thinking that maybe it is not recognizing any pair of records where the columns in question match up (though there are many).
Thanks for your help!
Code:
Dim vInsertLOI As String vInsertLOI = "INSERT INTO TBL_DocReview_byStudy([Date of LOI]) " _ & "SELECT [DATE SIGNED] " _ & "FROM [TBL_INVITATION LETTERS] " _ & "INNER JOIN TBL_DocReview_byStudy " _ & "ON [TBL_INVITATION LETTERS].[DATE SIGNED]=TBL_DocReview_byStudy.[Date of LOI] " _ & "AND [TBL_INVITATION LETTERS].STUDY=TBL_DocReview_byStudy.Study " _ & "AND [TBL_INVITATION LETTERS].[DC TYPE]=TBL_DocReview_byStudy.CDB"
and then later
Code:
CurrentDb.Execute vInsertLOI, dbFailOnError And dbSeeChanges
It's not throwing any errors, but when I open up the target table, nothing has been added. I'm thinking that maybe it is not recognizing any pair of records where the columns in question match up (though there are many).
Thanks for your help!
Comment