bradsr0138
Registered User.
- Local time
- Today, 14:17
- Joined
- Feb 18, 2008
- Messages
- 11
I am trying to get data from one table to another. What i have so far is
Private Sub btnTransfer_Click()
Dim db As DAO.database, sSQL As String
Set db = CurrentDb
aSQL = "UPDATE Projects RIGHT JOIN InspectionReports ON Projects.ProjectNumber = InspectionReports.ProjectNumber SET Projects.ProjectNumber = InspectionReports.ProjectNumber
DoCmd.SetWarnings False
DoCmd.RunSQL (aSQL)
DoCmd.SetWarnings True
End Sub
and that works fine for 1 column of data, but I want to copy multiple coulumns from the original table to the new table and also keep the information tied together, if that makes sense.
Any help will be greatly appreciated.
Private Sub btnTransfer_Click()
Dim db As DAO.database, sSQL As String
Set db = CurrentDb
aSQL = "UPDATE Projects RIGHT JOIN InspectionReports ON Projects.ProjectNumber = InspectionReports.ProjectNumber SET Projects.ProjectNumber = InspectionReports.ProjectNumber
DoCmd.SetWarnings False
DoCmd.RunSQL (aSQL)
DoCmd.SetWarnings True
End Sub
and that works fine for 1 column of data, but I want to copy multiple coulumns from the original table to the new table and also keep the information tied together, if that makes sense.
Any help will be greatly appreciated.