Can't I just have a SQL statement do the replace dynamically without iterating though the rows individually in my code? (the statement works in an MS Access query)
The OleDbCommand is not database specific so it doesn't know that the Microsoft Access Replace function exists which is why it works in the database itself but not from your page.
You can call other access queries using the "execute Query1" for your command object. Unfortionately the replace function causes an error. I don't see any work around for this other than using the old ADODB with a wrapper.
An alternative method would be to use the Microsoft Access Object Library and execute the query from within the file itself (but I'm not sure what speed implications this would have so you would have to try it out).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.