R
RickW
My application is an ADP and I want to export all the records showing in a
Subform to Excel.
The record source of the subform is an SQL view. I use ServerFilter to
limit the records according to a combo box on the main form, and this works
fine.
However, when I run my sub based on "DoCmd.OutputTo" the result in Excel is
all rows disregarding the ServerFilter value.
I then tried to pass the whole SQL to the recordsource including a WHERE
clause instead of ServerFilter and got the same result.
Why is this happening please, and can you give me a solution??
Regards
Rick
Subform to Excel.
The record source of the subform is an SQL view. I use ServerFilter to
limit the records according to a combo box on the main form, and this works
fine.
However, when I run my sub based on "DoCmd.OutputTo" the result in Excel is
all rows disregarding the ServerFilter value.
I then tried to pass the whole SQL to the recordsource including a WHERE
clause instead of ServerFilter and got the same result.
Why is this happening please, and can you give me a solution??
Regards
Rick