I am trying to create a new table from an existing table. The existing table is created from an import command ( DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel8, "tbl_test", "S:\vata\surlak - Go To Sleep\Import Data Code\Actiwatch sample.xlsx", True). I have to find where the new table should start from the imported table and capture all my data that is needed.
I'm looking for the keyword 'Marker' in the existing imported table "tbl_test".
So here's what I have - having gotten help from acces help, but I cannot seem to grasp what I am doing and how to do it. Also the table that this data gets imported into (tbl_test) does not have any field names - so it defaults to "F1" as the first column.
Open tbl_test1 for Input as #1
Do While Not tbl_test.EOF And tbl_test.EOF("F1") <> "Marker"
Line Input #1, (i don't know what goes here - imported table name or new table name i want to create)
Debug.Print InputData (I want it to go to the new table)
Loop
Close tbl_test
I'm looking for the keyword 'Marker' in the existing imported table "tbl_test".
So here's what I have - having gotten help from acces help, but I cannot seem to grasp what I am doing and how to do it. Also the table that this data gets imported into (tbl_test) does not have any field names - so it defaults to "F1" as the first column.
Open tbl_test1 for Input as #1
Do While Not tbl_test.EOF And tbl_test.EOF("F1") <> "Marker"
Line Input #1, (i don't know what goes here - imported table name or new table name i want to create)
Debug.Print InputData (I want it to go to the new table)
Loop
Close tbl_test