Hi All.
I have a main form and a sub form which have underlying table and child table.
There's a field in my table which is a count result of the records in it's child table. ([mainTable].[CountField])
My problem is that each time I add a new record to the sub form, count the records and update [CountField] on the main table/form, it gets updated only with the count of the records in the subform _before_ the new record was added.
I tried to refresh the subform on Add New Record event, before I count the records and update [CountField], but it doesn't help.
After the process finished. When I count the records, it does return the correct result.
Do you know the soulution?
Thanks a lot,
inso.
I have a main form and a sub form which have underlying table and child table.
There's a field in my table which is a count result of the records in it's child table. ([mainTable].[CountField])
My problem is that each time I add a new record to the sub form, count the records and update [CountField] on the main table/form, it gets updated only with the count of the records in the subform _before_ the new record was added.
I tried to refresh the subform on Add New Record event, before I count the records and update [CountField], but it doesn't help.
After the process finished. When I count the records, it does return the correct result.
Do you know the soulution?
Thanks a lot,
inso.