LanaR
Member
- Local time
- Today, 15:40
- Joined
- May 20, 2021
- Messages
- 113
The following SQL works fine as a Query
But causes the following error when implemented in VBA
Code:
StrSQL = "INSERT INTO TBL_TastNote ( WineID, AuthID, [Note] ) " & _
"SELECT TBL_Wine.WineID, TBL_Wine.Wine, 4 AS Expr1, 'See Attatched PDF' AS Expr2 " & _
"FROM TBL_Wine " & _
"WHERE (((TBL_Wine.WineID)=[forms]![FRM_Wine]![WineID])); "
But causes the following error when implemented in VBA