You don't replace dnOpendynaset with dbSeeChanges but instead, you add dbSeeChanges as the third parameter:
set rst = dbs.openrecordset("MyTable", dnOpendynaset, dbSeeChanges)
-- Sylvain Lafontaine, ing. MVP - Technologies Virtual-PC E-mail: sylvain aei ca (fill the blanks, no spam please)
"SF" <xyz[ at ]online.com.kh> wrote in message news:euLQSQurHHA.2384[ at ]TK2MSFTNGP06.phx.gbl...
[Quoted Text] > Hi Stefan > > Appreciate your prompt advice. > > My tables have primary key as well as the timestamp. I still got error > Invalid argument. (Error 3001) > at set rst = dbs.openrecordset("MyTable", dbseechanges) > I can however add record to the table itself manually. > > SF > > > "Stefan Hoffmann" <stefan.hoffmann[ at ]explido.de> wrote in message > news:%23LPFnGmrHHA.500[ at ]TK2MSFTNGP02.phx.gbl... >> hi, >> >> SF wrote: >>> I have just recently moving my back end to SQL Server 2005 and >>> reconnecting my table through ODBC. I have got an error trying to insert >>> new record. >> First of all, check whether your tables have primary keys or not. Then >> add a field of SQL Server data type TIMESTAMP to each table on the >> server. >> >> Relink your tables. Check in design view, if Jet has recognized the >> primary keys. >> >> Add a record manually to this linked table. >> >> Disable the error handler, in which line of your code does the debugger >> halt execution? >> >> >> mfG >> --> stefan <-- > >
|