Getting error 3027 and can't figure out why.
Dim db As DAO.Database
Dim rs As DAO.Recordset
Dim strSQL As String
Set db = CurrentDb
strSQL = "SELECT tblBOM.PolyUOMcost, tblPartsTEMP.CurrentCost " & _
"FROM tblBOM " & _
"INNER JOIN tblPartsTEMP ON tblBOM.PolyID = tblPartsTEMP.Numbered " & _
"Where Not IsNull(tblBOM.PolyID)"
Set rs = db.OpenRecordset(strSQL)
With rs
Do Until .EOF = True
rs.Edit
rs("PolyUOMcost") = rs("CurrentCost")
rs.Update
.MoveNext
Loop
End With
rs.Close
Set rs = Nothing
Set db = Nothing
tblBOM is a local table
tblPartsTEMP is a linked table
Any help would be greatly appreciated
Dim db As DAO.Database
Dim rs As DAO.Recordset
Dim strSQL As String
Set db = CurrentDb
strSQL = "SELECT tblBOM.PolyUOMcost, tblPartsTEMP.CurrentCost " & _
"FROM tblBOM " & _
"INNER JOIN tblPartsTEMP ON tblBOM.PolyID = tblPartsTEMP.Numbered " & _
"Where Not IsNull(tblBOM.PolyID)"
Set rs = db.OpenRecordset(strSQL)
With rs
Do Until .EOF = True
rs.Edit
rs("PolyUOMcost") = rs("CurrentCost")
rs.Update
.MoveNext
Loop
End With
rs.Close
Set rs = Nothing
Set db = Nothing
tblBOM is a local table
tblPartsTEMP is a linked table
Any help would be greatly appreciated