I'm trying to access data in vba using the openrecordset command. The
data in on a SQL Server 2000 database, and I have linked tables to
that data. the Table I'm trying to access is one of these linked
tables, and my codes is as follows:
Set vRS = CurrentDb.OpenR ecordset(tbl_Da taCommentLog)
when this line is executed I get the error:
"Run-time error '3622':
You must use the dbSeeChanges option with OpenRecordset when
accessing a SQL Server table that has an Identity column. "
so I changed my code to:
Set vRS = CurrentDb.OpenR ecordset(vSQL, , dbseeChanges)
When this is executed the following error is generated:
" Run-time error '13':
Type mismatch "
I noticed that it didn't seem to recognise the 'dbseechanges'
arguement as usual the case is correct for known expressions, yet the
's' was not captialised on the 'dbseeChanges' !!!!
Please help this is driving me potty...
data in on a SQL Server 2000 database, and I have linked tables to
that data. the Table I'm trying to access is one of these linked
tables, and my codes is as follows:
Set vRS = CurrentDb.OpenR ecordset(tbl_Da taCommentLog)
when this line is executed I get the error:
"Run-time error '3622':
You must use the dbSeeChanges option with OpenRecordset when
accessing a SQL Server table that has an Identity column. "
so I changed my code to:
Set vRS = CurrentDb.OpenR ecordset(vSQL, , dbseeChanges)
When this is executed the following error is generated:
" Run-time error '13':
Type mismatch "
I noticed that it didn't seem to recognise the 'dbseechanges'
arguement as usual the case is correct for known expressions, yet the
's' was not captialised on the 'dbseeChanges' !!!!
Please help this is driving me potty...
Comment