Let's say I have 10 saved update queries that I use to manipulate imported data. These queries update a "Cost" field in order of the quality of costs I have available. The query logic is as follows:
Update "Cost" if i have a cost in "Cost1"
If "Cost" is still empty, Update using "Cost2"
If "Cost" is still empty, Update using "Cost3"
...
" " "Cost 10"
BUT, "Cost1" isn't always the cost I want to use first!
Sometimes I need to say...
Update "Cost" if i have a cost in "Cost4"
If "Cost" is still empty, Update using "Cost2"
If "Cost" is still empty, Update using "Cost8"
...
" " "Cost 3"
What is the most simple/best method to use in a situation when I need to change the order of queries being run in VBA?
I use the method...
Update "Cost" if i have a cost in "Cost1"
If "Cost" is still empty, Update using "Cost2"
If "Cost" is still empty, Update using "Cost3"
...
" " "Cost 10"
BUT, "Cost1" isn't always the cost I want to use first!
Sometimes I need to say...
Update "Cost" if i have a cost in "Cost4"
If "Cost" is still empty, Update using "Cost2"
If "Cost" is still empty, Update using "Cost8"
...
" " "Cost 3"
What is the most simple/best method to use in a situation when I need to change the order of queries being run in VBA?
I use the method...
Code:
db.execute "qry_Cost1", dbFailOnError
db.execute "qry_Cost2", dbFailOnError
etc...