I am trying to create a table of contents for an Access report using the following script. I added =InitToc() at report on open, Case number header =UpdateToc([STA_N],[Report]), and page footer =UpdatePageNumber(). But I got error message The object doesn't contain the automation object 'STA_N'.
Any body can help me?
Thank you in advance!