Unfortunately, Access does not have a search function (which I know) that includes form and report properties.
However, there is an undocumented SaveAsText method that copies forms and reports to text files. If you retrieve all your forms and reports ...
Dim db As Database Dim d As Document Set db = CurrentDb() For Each d In db.Containers("Forms").Documents Application.SaveAsText acForm, d.Name, "C:\export\" & d.Name & ".frm" Next For Each d In db.Containers("Reports").Documents Application.SaveAsText acReport, d.Name, "C:\export\" & d.Name & ".rpt" Next
... you can use "regular" text search tools (such as findstr , which is included on Windows) to find occurrences of specific words:
C:\export>findstr /I "\<myFunction\>" * Form1.frm: OnClick ="=myFunction()"
source share