merlynsdad
Programmer
I have a query qryTotalRdyTm with two fields, SEID and ReadyTime, on which I am summing. I have a table called tblSEIDtoExt_Num with a date/time field called TotalRdyTm. I'm trying to move the result of the query to that field using the following SQL (in VBA):
strSQL = "UPDATE tblSEIDtoExt_Num " _
& "SELECT Sum(tblSEIDtoExt_Num.ReadyTime) AS SumOfReadyTime " _
& "FROM qryTotalRdyTm " _
& "SET tblSEIDtoExt_Num.TotalRdyTm = qryTotalRdyTm.SumOfReadyTime " _
& "WHERE SEID= '" & strSEID & "';"
I'm getting a syntax error and can't find the problem.
If the square peg won't fit in the round hole, sand off the corners.
strSQL = "UPDATE tblSEIDtoExt_Num " _
& "SELECT Sum(tblSEIDtoExt_Num.ReadyTime) AS SumOfReadyTime " _
& "FROM qryTotalRdyTm " _
& "SET tblSEIDtoExt_Num.TotalRdyTm = qryTotalRdyTm.SumOfReadyTime " _
& "WHERE SEID= '" & strSEID & "';"
I'm getting a syntax error and can't find the problem.
If the square peg won't fit in the round hole, sand off the corners.