Hi! Ive create a form (lets called it "OriginalForm") which has a popup menu which has a option that causes a search form ("SearchForm") to popup. {* Each option on the popup menu has a code attached to it so it can carry out some action). When the search button on the search form is clicked, the filtered records are displayed in Original Form. I want to add an option on the popup menu in the Original Form that will return it to the original state so that all records are now visible.
I tried to create a option on the popup menu which would run this code:
Public Function showAll(strForm As String)
DoCmd.showAllRecords
End Function
but its done nothing for me...
I know Im missing something i.e. form name ie. ....allrecords "frmOriginal Form" etc, but when I try to add this in I get an error. Im too new to this to work out how to do it myself and I cant seem to find answers on own.
If someone could please help it would be much appreciated. =)
I tried to create a option on the popup menu which would run this code:
Public Function showAll(strForm As String)
DoCmd.showAllRecords
End Function
but its done nothing for me...
I know Im missing something i.e. form name ie. ....allrecords "frmOriginal Form" etc, but when I try to add this in I get an error. Im too new to this to work out how to do it myself and I cant seem to find answers on own.
If someone could please help it would be much appreciated. =)