Dear all,
This is the first time I am doing this, so please excuse me if it is a stupid question or a wrong data import approach.
The problem in my code is to populate an Access table from a DAO table that gets data from an external .csv file (importing trough an Access GUI is impossible).
The idea is as follows: import the csv file as a DAO excel table, manipulate the fields and place them into an access table. The compiler complains about a MIR_tb.MoveNext (table is defined as a dao table)
Code is attached below and any help would be appreciated.
Exists = IsObject(CurrentDb.TableDefs(test))
If Exists = True Then
Do While Not EOF(Check_name)
test.RowSource = "SELECT * FROM MIR_tb"
MIR_tb.MoveNext
Else
MIR_sql_tb = "CREATE TABLE test ([Name] text(50) WITH Compression, " & _
"[Check_name] text(150) WITH Compression, " & _
"[Series_name] text(50) WITH Compression, " & _
"[Reference_date] text(5) WITH Compression, " & _
"[Comments] mediumtext WITH Compression, " & _
"[Check Source] mediumtext WITH Compression)"
Next MIR_w 'Refers to a condition from a previous loop
This is the first time I am doing this, so please excuse me if it is a stupid question or a wrong data import approach.
The problem in my code is to populate an Access table from a DAO table that gets data from an external .csv file (importing trough an Access GUI is impossible).
The idea is as follows: import the csv file as a DAO excel table, manipulate the fields and place them into an access table. The compiler complains about a MIR_tb.MoveNext (table is defined as a dao table)
Code is attached below and any help would be appreciated.
Exists = IsObject(CurrentDb.TableDefs(test))
If Exists = True Then
Do While Not EOF(Check_name)
test.RowSource = "SELECT * FROM MIR_tb"
MIR_tb.MoveNext
Else
MIR_sql_tb = "CREATE TABLE test ([Name] text(50) WITH Compression, " & _
"[Check_name] text(150) WITH Compression, " & _
"[Series_name] text(50) WITH Compression, " & _
"[Reference_date] text(5) WITH Compression, " & _
"[Comments] mediumtext WITH Compression, " & _
"[Check Source] mediumtext WITH Compression)"
Next MIR_w 'Refers to a condition from a previous loop