hello,
I have this simple code to import data from an excel file to a temporary table
That works great. Now I need an query wich insert each row on that temporary table to the actual table. I read that it would be an "For each" query and I'm not good enough to write it by my own yet.
Actual table and temporary table have same field names "amount" (integer type) ,"TransDate" (date type), "reference" (string type).
Any help would be really appreciate.
I have this simple code to import data from an excel file to a temporary table
Private Sub ImportXls_Click()
Dim Filepath As String
Dim strTable As String
Filepath = Me.fpath.Value
strTable= "TemporJ"
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel12, strTable, Filepath, True
That works great. Now I need an query wich insert each row on that temporary table to the actual table. I read that it would be an "For each" query and I'm not good enough to write it by my own yet.
Actual table and temporary table have same field names "amount" (integer type) ,"TransDate" (date type), "reference" (string type).
Any help would be really appreciate.