Opening a Table with CDaoRecordset
Posted on 1998-02-09
I have derived a class from CDaoRecordset that should access a table in an Access database (Access 97). The table exists however it is empty.
Instead of doing a query, I want to add an entry to this table. So I call Open() (with no parameters). Unfortunately I get an exception that says:
"Too few parameters, expected 1."
I assume calling "Open" will open the table so I can use the "AddNew()" method. The table was generated via ClassWizard so the default table and database name are hard-coded.