C
Colin Foster
I have a database with a main form & several subforms. I can use CTRL+F to
search the main form, but (as others have found out) this doesn't work on
subforms.
I have tried two ways around this.
The first is by selecting th efield within the subform & selecting "Filter
by Form" However, this filters the subform & I still have to go and find
which main form record has the entry that I'm looking for.
The second is to set up a query that includes all of the fields that I want
to be able to search on, then add: Like "*" &
[Forms]![frmSearch]![SearchCriteria] & "*" which is linked to a form to
provide the data to search. I need to search across every field in the query
for example Field x OR field y or.... but I'm obviously doing something
wrong with this as, without any criteria all records are shown, with
something in the searchCriteria, nothing is shown.
Then I want to have the whole result displayed in my main form/subform
format.
Am I asking too much?
Regards
Colin Foster
search the main form, but (as others have found out) this doesn't work on
subforms.
I have tried two ways around this.
The first is by selecting th efield within the subform & selecting "Filter
by Form" However, this filters the subform & I still have to go and find
which main form record has the entry that I'm looking for.
The second is to set up a query that includes all of the fields that I want
to be able to search on, then add: Like "*" &
[Forms]![frmSearch]![SearchCriteria] & "*" which is linked to a form to
provide the data to search. I need to search across every field in the query
for example Field x OR field y or.... but I'm obviously doing something
wrong with this as, without any criteria all records are shown, with
something in the searchCriteria, nothing is shown.
Then I want to have the whole result displayed in my main form/subform
format.
Am I asking too much?
Regards
Colin Foster