Thanks for the response and the request for code.

Original request: A lot is mailed on this list extolling the virtues of 
binding parameters. Can this be done with an MS Access Database? I just get 
an error.

Answer: Yes, binding parameters work with MS Access.


The real problem is that I'm trying to think of a way to speed up updating 
an Access table from a csv file. I can't think of a way to use bind 
parameters. The process I'm using is:

1) Read first line of file which is the column names
2) Read each subsequent line from file
3) If the row already exists in the table:
        UPDATE table SET col1='value1',col2='value2' WHERE ID=id
    else
        INSERT INTO table(col1,col2) VALUES('value1','value2')

Because each UPDATE/INSERT sql is unique there is no way bind parameters 
can be used. Unless anyone knows of a way ...


Ian 

Reply via email to