VB newbie, hope you can help
My objective is to query a table for distinct values in PhyState, then use the resulting list to pass each state to another query where the results will be exported to Excel
Steps:
1. Get list of states
2. Loop through list of states passing the state code to a query to produce a record set that can be exported to Excel.
I think I want to run this query;
Query:
Select Distinct phyState From cptConv_AMLTExtract Order By PhyState Asc
Insert the results into and Array === >>> How do I do this?
Then loop through the Array extracting the value to be passed =====> How do I do this?
I hope this makes sense. Thanks in advance
Keith
My objective is to query a table for distinct values in PhyState, then use the resulting list to pass each state to another query where the results will be exported to Excel
Steps:
1. Get list of states
2. Loop through list of states passing the state code to a query to produce a record set that can be exported to Excel.
I think I want to run this query;
Query:
Select Distinct phyState From cptConv_AMLTExtract Order By PhyState Asc
Insert the results into and Array === >>> How do I do this?
Then loop through the Array extracting the value to be passed =====> How do I do this?
I hope this makes sense. Thanks in advance
Keith