N
Nova
I create from and copy SQL statement form Query Design to command click event
procedure But it is not work, If I Run from Query it works. I don't
understand why?.
This is my SQL statement
Private Sub Command6_Click()
Dim Strsql As String
Strsql = "INSERT INTO HistoryEQ ( Detail )"
Strsql = Strsql & "SELECT MaintReport.MaintID AS Detail FROM MaintReport"
Strsql = Strsql & "INNER JOIN RX ON MaintReport.MaintID = RX.MaintID"
Strsql = Strsql & "WHERE (((RX.AssetNo)=[forms]![Equipdetail].[AssetNo]));"
End Sub
After I click commamd6 buttton then I open the HistoryEQ tablel, It has no
any data inserted to table. Help me Please.
procedure But it is not work, If I Run from Query it works. I don't
understand why?.
This is my SQL statement
Private Sub Command6_Click()
Dim Strsql As String
Strsql = "INSERT INTO HistoryEQ ( Detail )"
Strsql = Strsql & "SELECT MaintReport.MaintID AS Detail FROM MaintReport"
Strsql = Strsql & "INNER JOIN RX ON MaintReport.MaintID = RX.MaintID"
Strsql = Strsql & "WHERE (((RX.AssetNo)=[forms]![Equipdetail].[AssetNo]));"
End Sub
After I click commamd6 buttton then I open the HistoryEQ tablel, It has no
any data inserted to table. Help me Please.