E
Eric Piquette
Hi,
I'm currently converting an Access 2.0 database into the XP format (still
using DAO) and I'm getting a weird type mismatch error during runtime. The
code is under an "add" button :
Dim MaBD As Database
Dim MaTable As Recordset
Set MaBD = DBEngine.Workspaces(0).Databases(0)
---
Set MaTable = MaBD.OpenRecordset ("Protocoles", DB_OPEN_TABLE)
---
MaTable.AddNew
MaTable.Update
MaTable.MoveLast
NoRecord = MaTable![No]
MaTable.Close
The error is given on the OpenRecordSet method. However, the data types
match the proposed syntax, and I have the exact same syntax working under
another database in Access 2000 format. (The project references are
identical). Can anyone help ? I've tried changing the options constant name
to dbOpenTable, and adding a lockedits parameter, but it still doesn't work.
Thanks in advance,
Eric P.
I'm currently converting an Access 2.0 database into the XP format (still
using DAO) and I'm getting a weird type mismatch error during runtime. The
code is under an "add" button :
Dim MaBD As Database
Dim MaTable As Recordset
Set MaBD = DBEngine.Workspaces(0).Databases(0)
---
Set MaTable = MaBD.OpenRecordset ("Protocoles", DB_OPEN_TABLE)
---
MaTable.AddNew
MaTable.Update
MaTable.MoveLast
NoRecord = MaTable![No]
MaTable.Close
The error is given on the OpenRecordSet method. However, the data types
match the proposed syntax, and I have the exact same syntax working under
another database in Access 2000 format. (The project references are
identical). Can anyone help ? I've tried changing the options constant name
to dbOpenTable, and adding a lockedits parameter, but it still doesn't work.
Thanks in advance,
Eric P.