I have a user form that is used basically to import data into tables, roll data up to a ytd table, etc.
There is also a command button to open a table directly to do editing/deleting of records, etc. Next to each table name/option button I have a disabled textbox with a dlookup that counts the number of records in the underlying table.
With the cmds for import/rollup I have been able to easily refresh the count data with "me.refresh" by including this at the end of the subs.
Is there anyplace I can put this to run the refresh after they have used the cmd button to open a table? In other words, they have chosen their desired table, clicked the edit button, opened the table, deleted a record, and closed the table. I assume I am now out of the sub, so cannot put it there.
I know I can put a "refresh" button on the form, but was looking to see if there was maybe a "behind the scenes" way of doing it, when the table is closed.
There is also a command button to open a table directly to do editing/deleting of records, etc. Next to each table name/option button I have a disabled textbox with a dlookup that counts the number of records in the underlying table.
With the cmds for import/rollup I have been able to easily refresh the count data with "me.refresh" by including this at the end of the subs.
Is there anyplace I can put this to run the refresh after they have used the cmd button to open a table? In other words, they have chosen their desired table, clicked the edit button, opened the table, deleted a record, and closed the table. I assume I am now out of the sub, so cannot put it there.
I know I can put a "refresh" button on the form, but was looking to see if there was maybe a "behind the scenes" way of doing it, when the table is closed.