I used a progress bar to inform the user of progress when checking that all tables were linked.
The number of tables was in "Thisdb.TableDefs.Count"
VarReturn is a variant. strMSG is a string, intI is an integer
-------------------------------------------------------
strMSG = "Checking " & Thisdb.TableDefs.Count & " tables for external linkages ..."
varReturn = SysCmd(acSysCmdInitMeter, strMSG, Thisdb.TableDefs.Count)
intI = 0
For Each ThisTblDef In Thisdb.TableDefs
intI = intI + 1
varReturn = SysCmd(acSysCmdUpdateMeter, intI)
. . .
. . . code which checks the tables
. . .
Next ' ThisTblDef
varReturn = SysCmd(acSysCmdClearStatus) ' clear bar
-------------------------------------------------------
The user sees a message "Checking nn tables for external linkages ..." and a progress bar.
Each time round the loop the bar gets bigger with the "varReturn = SysCmd(acSysCmdUpdateMeter, intI)" instruction.
At the end of the loop the progress bar and the message is cleared.
Make sure to include "varReturn = SysCmd(acSysCmdClearStatus)" in any error handler you use.
Hope this helps
![[pipe] [pipe] [pipe]](/data/assets/smilies/pipe.gif)