G
Guest
I'm using a macro to export the results of a query which is filtered by
building up a filter string (strWhere). Currently the macro exports the
results without applying the filter. What I need to know is how to
incorporate a WHERE clause under the macro's condition field that tells the
macro to filter the query using the strWhere. I admit I don't even know if
this is possible? I have tried using DoCmd.Transferspreadsheet, OutPut To,
etc... I'm having a hard time understanding how to get the filter into the
queries WHERE statement. I have read post after post (and posted a couple
myself) and ask everyones patience as I need a walkthrough here. No matter
how I try the filter does not apply. If someone can help me (even off forum)
I would be very grateful! I would be glad to email the code I have.
Thanks again!
building up a filter string (strWhere). Currently the macro exports the
results without applying the filter. What I need to know is how to
incorporate a WHERE clause under the macro's condition field that tells the
macro to filter the query using the strWhere. I admit I don't even know if
this is possible? I have tried using DoCmd.Transferspreadsheet, OutPut To,
etc... I'm having a hard time understanding how to get the filter into the
queries WHERE statement. I have read post after post (and posted a couple
myself) and ask everyones patience as I need a walkthrough here. No matter
how I try the filter does not apply. If someone can help me (even off forum)
I would be very grateful! I would be glad to email the code I have.
Thanks again!