Hi,
I have a DAO.recordset called "rsSQLIn". This comes from a csv file by:
FileNamea is an .ini file that is generated automatically.
This works fine.
I validate this input by the access table which this result should go to.
The method I do this by is:
And so on.
While the validation runs a boolean keeps track of validated input and errored input.
After validation the validated input is dumped in the table.
Now what I want is de saving the errored record from "rsSQLIn" to be copied to a new .csv file.
The problem I have is that I cant seem to get the current record from the recordset "rsSQLIn". How do I reference this? I need the complete set of 24 fields being the same within "rsSQLIn"
I have a DAO.recordset called "rsSQLIn". This comes from a csv file by:
Code:
strSql = "SELECT * " _
& "FROM [Text;Database=" _
& strFolder _
& ";HDR=No;FMT=CSVDelimited;].[" _
& FileNamea _
& "]"
FileNamea is an .ini file that is generated automatically.
This works fine.
I validate this input by the access table which this result should go to.
The method I do this by is:
Code:
Set tdf = dbs.TableDefs("tbl_import_bk")
Do While Not rsSQLIn.EOF
rsSQLOut.AddNew
For Each fld In tdf.Fields
And so on.
While the validation runs a boolean keeps track of validated input and errored input.
After validation the validated input is dumped in the table.
Now what I want is de saving the errored record from "rsSQLIn" to be copied to a new .csv file.
The problem I have is that I cant seem to get the current record from the recordset "rsSQLIn". How do I reference this? I need the complete set of 24 fields being the same within "rsSQLIn"