I'm not sure I fully understand your workflow, but the MergeDB's macro allows you to merge only waypoints with the user flag set. If I'm understanding correctly, you could avoid moving temp disabled or archived caches by setting the user flag on all other caches in the source database before merging, then run the MergeDB macro with this box checked:
![user posted image]()
If you want to automate settings the flags, the following macro code will set the user flag for all available caches in the current database (i.e. those that are NOT temp disabled or archived):
We can tweak that code if you want something else and I can help you create a wrapper macro to fully automate the process if this would meet your needs. If not, please elaborate on your workflow, i.e. when you say:
What is the source of the archived caches (i.e. how do you know they are archived)? Which DB are you merging into what other DB?

If you want to automate settings the flags, the following macro code will set the user flag for all available caches in the current database (i.e. those that are NOT temp disabled or archived):
QUOTE |
$_sql="UPDATE Caches SET UserFlag=1 WHERE Status='A'" $Status=Sqlite("sql",$_sql) |
We can tweak that code if you want something else and I can help you create a wrapper macro to fully automate the process if this would meet your needs. If not, please elaborate on your workflow, i.e. when you say:
QUOTE |
Basically I want to be able to see the Archived caches with no Disabled caches in my merged database because this is how I know caches have been archived and they can be removed from my main databases. |
What is the source of the archived caches (i.e. how do you know they are archived)? Which DB are you merging into what other DB?