The Mess:
Over the years, I've added various classes and utilities to my Access database. Most of these use private API declarations, so I now have many duplicates scattered across different modules.
My situation:
All machines running this database, are on Microsoft 365, all 64 bit, only one 32 bit.
All Windows 11 except a few Windows 10.
My Plan:
Thanks for any kind of advice.
Over the years, I've added various classes and utilities to my Access database. Most of these use private API declarations, so I now have many duplicates scattered across different modules.
My situation:
All machines running this database, are on Microsoft 365, all 64 bit, only one 32 bit.
All Windows 11 except a few Windows 10.
My Plan:
- Delete all #Else sections in conditional compilation blocks. ( I really hate that red blocks in vbe)
- Move all APIs into a single new standard module called modWinAPI.
- Use Find/Replace to change Private Declare to Public Declare.
- Compile the project and delete redundant APIs when I hit "Ambiguous name" errors.
- Is this a safe approach, or is it better to leave the duplicates alone?
- Will changing the physical order of these declarations affect how they function?
- Are there other risks (like 32-bit vs. 64-bit issues) I should be worried about before I start?
- Is Consolidating Duplicates a Recipe for Disaster?
Thanks for any kind of advice.