S
SSBHA
I have 47 union queries that collect data for 47 pumping stations on monthly
basis; then plots each query result. Every month a table is added to the
list of individual union query. I got tired of adding the union select
statement manully to 47 queries and started to write a little module to
handle it. Using Visual Basic scripting, I know how to create a table or a
query in a database; I know how to add records to existing table, etc. But I
don't know how to add a sql satement to an existing union query using visual
basic coding. I have tried variours DoCmd actions and Variou Methods and
none worked. Can you help?
basis; then plots each query result. Every month a table is added to the
list of individual union query. I got tired of adding the union select
statement manully to 47 queries and started to write a little module to
handle it. Using Visual Basic scripting, I know how to create a table or a
query in a database; I know how to add records to existing table, etc. But I
don't know how to add a sql satement to an existing union query using visual
basic coding. I have tried variours DoCmd actions and Variou Methods and
none worked. Can you help?