
ADO problem with database operations on dBase III tables
I'm trying to manipulate a couple of DBFs through code. Based on one DBF, I
want to delete records from another DBF and add them to yet a third. I
realize
that Jet can't actually delete records from a dBase file, but it can mark
them deleted and that's fine with me. Here's the connection string I'm
using:
Provider=Microsoft.Jet.OLEDB.4.0;Data Source=J:\Data\;User ID=Admin;Extended
Properties=dBase III;Locale Identifier=1033;
This is the query I'm running:
DELETE FROM ABINew WHERE RECID IN (SELECT RECID FROM ABINew1)
(I had to do the subselect because Access refused to run the query when it
had an inner join, and if Access itself won't run a query....)
The first error I get it this:
-2147467259: Selected collating sequence not supported by the operating
system.
So I run the procedure again. (I threw in the Locale stuff after the first
time I saw this, hoping it would fix it. It didn't.) The previous error does
not occur (but it would if I closed the program and started it up again),
but this one does:
-2147467259: Could not delete from specified tables.
I ran the exact same query from Access (where I had these DBFs linked) and I
was able to delete from ABINew. Any suggestions? I really don't want to
create an MDB and link these files.
And yes, the files ABINew.dbf and ABINew1.dbf definitely exist in J:\Data.
I've already checked the "duh" stuff.