Hi guys
Can you please help me with the syntax to save data within a form using tblA to tblB (whicheva changes i make on the form, i want saved on both tables)
i've tried this whenever i click the done command but it's not workin
CODE:
DoCmd.RunCommand acCmdSaveRecord
Dim strAll As String
Dim insertHistory As String
strAll = "SELECT almost.*"
strAll = strAll & "FROM almost, History"
strAll = strAll & "WHERE [forms]![molo]![Customercode] = almost.customercode "
insertHistory = "INSERT INTO history ( SELECT strAll.* FROM strAll )"
End Sub
Can you please help me with the syntax to save data within a form using tblA to tblB (whicheva changes i make on the form, i want saved on both tables)
i've tried this whenever i click the done command but it's not workin

CODE:
DoCmd.RunCommand acCmdSaveRecord
Dim strAll As String
Dim insertHistory As String
strAll = "SELECT almost.*"
strAll = strAll & "FROM almost, History"
strAll = strAll & "WHERE [forms]![molo]![Customercode] = almost.customercode "
insertHistory = "INSERT INTO history ( SELECT strAll.* FROM strAll )"
End Sub