C
Carl
Hi All,
When adding a new record it appears that a form's recordset is not updated
until AFTER the AfterInsert procedure completes. Does anyone know of a way
to know when the recordset has actually been updated? Even more importantly,
when the changes have actually been saved to the underlying database?
Particulars:
-Using an ADP with ADO recordsets.
-Form has no recordsource, its recordset is set at run time based on user's
selections.
-When New record selected an empty recordset is created and assigned to the
forms recordset property.
-Backend database is SQL Server 2000
When the user creates a new record they fill in the information for the
parent record. They can also select multiple values from a multi-select
listbox. When the new record is saved I need to save their listbox
selections to a child table.
However, in the AfterInsert procedure the parent recordset is still
reporting BOF and EOF indicating that Access has not saved the data to the
recordset. Once the AfterInsert has completed processing and control is
returned to the user the recordset no longer reports BOF and EOF.
Thanks for any insights,
Carl
When adding a new record it appears that a form's recordset is not updated
until AFTER the AfterInsert procedure completes. Does anyone know of a way
to know when the recordset has actually been updated? Even more importantly,
when the changes have actually been saved to the underlying database?
Particulars:
-Using an ADP with ADO recordsets.
-Form has no recordsource, its recordset is set at run time based on user's
selections.
-When New record selected an empty recordset is created and assigned to the
forms recordset property.
-Backend database is SQL Server 2000
When the user creates a new record they fill in the information for the
parent record. They can also select multiple values from a multi-select
listbox. When the new record is saved I need to save their listbox
selections to a child table.
However, in the AfterInsert procedure the parent recordset is still
reporting BOF and EOF indicating that Access has not saved the data to the
recordset. Once the AfterInsert has completed processing and control is
returned to the user the recordset no longer reports BOF and EOF.
Thanks for any insights,
Carl