Hello guys,
It is my first thread posted here due to the fact I've spent 2 days to find a solution to my issue.
Shortly, I use an ADO Data Control to extract some data from a database (server) and I want to copy these records in other database (local). For this operation I use 2 methods:
1. "GetRows", which loads my selection in an variant array : myValues(columns, rows)
2. "AddNew" , which adds these records in my database (a simple table with 6 columns)
My issues is related to the "AddNew" arguments. Even it has 2 optional arguments I think both are necessary...
I would like to add just my table values, without header (FieldList), but I don't think it is possible.
After many attempts, I tried to load 2 arrays for these 2 arguments, but each time I failed in the execution.
The error occurred is "Runtime Error 3001 – Arguments are of the Wrong Type or out of acceptable range or are in conflict with one another". Simply, I don't understand how to transfer some records from a table in other...
Is something wrong with this ADODC ? Are some ADODC commands improperly declared ? I mention that I use Access2003 and the code I've written till now is below:
Thank you in advance.
Bookmarks