
Adding Records to empty table?
Working with VB 5.0 and an MS-Access MDB file, i want to write code which
adds records when a user clicks on a button. This works fine with tables
that have records already in them, but if the table is empty, any attempt
to add a record returns the runtime error of "This action was cancelled by
an associated object." I've tried several methods for adding a record, all
of which fail.
Two questions:
Is it failing because the current record value is set to -1 and it tries to
bookmark it?
How can i get it to add a record to an empty table? For development
purposes I can add records using the data manager, but when this project
ships to my client, it will do so with an empty mdb file that they will
begin to fill.
Please reply via email as well as to the ng so that I can receive responses
immediately. Thanks!
--
Adrian Goins
http://www.*-*-*.com/