S
swas
Hi,
I have a form which also has a report with the same recordsource. I did it
this way, so when the 'View Report' button on the form is pressed, if any
form filters are in place the user is asked if the same filters are required
on the report. If so, the report filters are set to the form filter, and
everything works fine.
However, what I have noticed if I use the "Advanced Filter / Sort" button
for more complex form filters (Even simple ones...), when these are applied
the form filter uses the full form name instead of just the field name.
Examples:
Select a field, press 'Filter By Selection", the filter generated is
"Product = Fruit"
Generate the same filter via "Advanced Filter Sort", the filter becomes
"frmFormName.Product = Fruit"
In the second case, the report asks for the paramater value for
frmFormName.Product and hence bombs.
I have no way of detecting how a filter may have been generated, or need to
parse these filter strings and try and remove form references. Any easier
ideas? It seems wierd to have two different filters generated.
Thanks in advance
swas
I have a form which also has a report with the same recordsource. I did it
this way, so when the 'View Report' button on the form is pressed, if any
form filters are in place the user is asked if the same filters are required
on the report. If so, the report filters are set to the form filter, and
everything works fine.
However, what I have noticed if I use the "Advanced Filter / Sort" button
for more complex form filters (Even simple ones...), when these are applied
the form filter uses the full form name instead of just the field name.
Examples:
Select a field, press 'Filter By Selection", the filter generated is
"Product = Fruit"
Generate the same filter via "Advanced Filter Sort", the filter becomes
"frmFormName.Product = Fruit"
In the second case, the report asks for the paramater value for
frmFormName.Product and hence bombs.
I have no way of detecting how a filter may have been generated, or need to
parse these filter strings and try and remove form references. Any easier
ideas? It seems wierd to have two different filters generated.
Thanks in advance
swas