S
Samantha
I need to update a table (Table1) from a temp table (Temp1) that I imported
data into. I'm getting an error on the db.Execute line.
What's wrong with these codes?
Dim db As Database, rsCust As Recordset
Set db = CurrentDb
Dim strSQL As String
strSQL = "UPDATE SampleTest"
'strSQL = strSQL & "SET SampleTest.POID = " & Me![test]
strSQL = strSQL & "SET [POID] = Order![PO ID]"
strSQL = strSQL & "WHERE SampleTest![PartNum]= Order![Part Number] AND
SampleTest!PO=[Order!PO]"
MsgBox strSQL
db.Execute strSQL, dbFailOnError
Any help is very much appreciated! thanks in advance.
data into. I'm getting an error on the db.Execute line.
What's wrong with these codes?
Dim db As Database, rsCust As Recordset
Set db = CurrentDb
Dim strSQL As String
strSQL = "UPDATE SampleTest"
'strSQL = strSQL & "SET SampleTest.POID = " & Me![test]
strSQL = strSQL & "SET [POID] = Order![PO ID]"
strSQL = strSQL & "WHERE SampleTest![PartNum]= Order![Part Number] AND
SampleTest!PO=[Order!PO]"
MsgBox strSQL
db.Execute strSQL, dbFailOnError
Any help is very much appreciated! thanks in advance.