What are the names of the controls on the forms that are supposed to be in
the place of the [Enter *]? The syntax '[Forms]![FRM School details]![Enter
*]' means that you are trying to get the value from a control named [Enter *]
on the form [FRM Schools detail]. Access is asking for the information that
would be in those fields if they were there.
If there is no such control on the form, then you need to determine the name
of the control containing the information that is supposed to be used. So for
example, if the contents of a control named txtPhase are supposed to go where
you have the expression [Enter Phase], you want to use [txtPhase]. Same
comment for others.
Good Luck!
--
Chaim
Rhysickle said:
Well, I've now followed the instructions and have the following where clause
[Phase]=[Forms]![FRM School details]![Enter Phase] And [Region]=[Forms]![FRM
School details]![Enter Region] And [Activity]=[Forms]![FRM School
details]![Enter Account]
Where the [Enter *] are the unbound fields... but still no luck.
It keeps asking me to enter the value I want [Enter account] to be, and then
no matter what I enter it returns no results.
I probably should have mentioned that the unbound fields are in the form I
am filtering, and this is why I think it doesn't work.
:
Take a look at your Access help for 'ApplyFilter Action'. It discusses
precisely what you seem to be asking for.
--
Chaim
:
How do I word the where clause of an applyfilter macro so that it looks in
the contents of some unbound fields in a form for its parameter values?
Cheers
Rhys