filters on their own works fine when pasted in as criteria:
what's wrong with '[FieldA] = 5' - it's explicit, so it should work
irrespective of which field you put it in
or in my case a typical filter would be:
[Enquired] Is Not Null AND [Letter Sent] Is Null
query produces the correct results wherever i put it
I am creating a database for our receptionist - it has a dozen different
filters for things she's likely to need/view/print - it creates some
simple
reports based on the form filter & I want to create a std addressed
mailmerge letter, she can edit and merge with who ever's in the filter - i
figured the best way is to base the merged letter on a query, which in
turn
should be based on whatever filter she chose - seemed straight forward
until
i tried it
i'm amazed i can't pass any properties to a query e.g. textbox.tag
i might have to consider passing the form filter direct to the merged
letter
but i figured that would be even harder
John Spencer said:
I dont't think you can pass the filter string of a form directly to query as
criteria. After all what would it make of criteria that read FieldA = 5.
That would become something like
SELECT ...
FROM ...
WHERE SomeField = "FieldA=5"
Why do you need to do this? To generate a report? or for some other
reason?
JethroUK© said:
i need to pass a form filter (Clients.filter), to a query as criteria
i tried:
[Forms]![clients]![filter]
[Forms]![clients.filter]
[Forms]![clients!filter]
all without success - any ideas?