I am trying insert a record into anther table after a record has been updated from the edit page. First I tried
[codebox]strSQLSave = "INSERT INTO tbllog (UFaultID, PriorityID, DeptID, ActionStatus, ActionUname, StatusID, EndDate, CommentID) SELECT UFaultID, PriorityID, DeptID, ActionStatus, ActionUname, StatusID, EndDate, CommentID FROM " & strTableName & " where " & where
'dbConnection.Execute strSQLSave[/codebox]
So I tried the
[codebox]dal.TableName.Field1=Value1
dal.TableName.Field2=Value2
dal.TableName.Add()[/codebox]
I changed the Tablename for the table I'm copying too, and changed the field names according to each different field. wasn't sure about the Value fields though. Is there anything else I need to do
Thanks
Andy