G
Guest
My version of Access 2003 cannot read the code "NoMatch". Does anyone how I
can make access recognize this code?
can make access recognize this code?
PerplexedinKY said:Error Message:
Comple Error:
Method or Data Member not found
Code:
Function UpdateToc(TocEntry As String, Rpt As Report)
' Called from the OnPrint property of the section containing
' the Table Of Contents entry. Updates the Table Of Contents
' entry.
toctable.Seek "=", TocEntry
If toctable.NoMatch Then <------Error Line
toctable.AddNew
toctable!Description = TocEntry
toctable![page number] = Rpt.Page
toctable.Update
End If
End Function
Thanks for the help.
Douglas J. Steele said:What's your code that's failing, and what's the exact error message?
--
Doug Steele, Microsoft Access MVP
(no e-mails, please!)
message
Douglas J. Steele said:What is toctable? (How have you declared it, and where?)
--
Doug Steele, Microsoft Access MVP
(no e-mails, please!)
PerplexedinKY said:Error Message:
Comple Error:
Method or Data Member not found
Code:
Function UpdateToc(TocEntry As String, Rpt As Report)
' Called from the OnPrint property of the section containing
' the Table Of Contents entry. Updates the Table Of Contents
' entry.
toctable.Seek "=", TocEntry
If toctable.NoMatch Then <------Error Line
toctable.AddNew
toctable!Description = TocEntry
toctable![page number] = Rpt.Page
toctable.Update
End If
End Function
Thanks for the help.
Douglas J. Steele said:What's your code that's failing, and what's the exact error message?
--
Doug Steele, Microsoft Access MVP
(no e-mails, please!)
message
My version of Access 2003 cannot read the code "NoMatch". Does anyone
how
I
can make access recognize this code?