Originally Posted by
pharrison74
I did notice your code has
toctable![PageNumber] = sTitle however if I match that I get a debug error. I have to use [Page number] instead.
Uhmm... not true.
There's nothing like that in my code.
Code:
Function UpdateToc(tocentry As String, Rpt As Report, sTitle As String)
toctable.Seek "=", tocentry
If toctable.NoMatch Then
toctable.AddNew
toctable!Case_Name = tocentry
toctable![PageNumber] = NoOfPages + 1
toctable!Title = sTitle
toctable.Update
End If
End Function
I don't know where did you get it from. Maybe try download it and unzip again in different folder?
Then just open unzipped db, print preview 3 reports (rpt1... etc), then ToC report and see if it's ok (because it is on my side).