Hi guys....
When I used to be a proper programmer - i.e. on a real Computer (a Mainframe (is anyone else old enough to remember them???)), I used to build up a variety of general purpose subroutines which could be called from other programs.
Is there an equivalent methodology in VBA?
For example, I have (inherited) a set of Tables which hold a person's full name in various different formats, e.g. "Fred Flintstone", "Flintstone, Fred", "Mr. Fred Flintsone" "Sir Fred Flintstone", "Flintstone, Mr. Fred".
I'm writing code to reformat the names into a standard format, and instead of including this code in each Access Project, it would be nice if there was a way of calling a utility routine (perhaps living in a Project called Utilities?) which could be invoked by something like
Call Utilities.ReformatName(CurrentNameString, BetterNameString)
where ReformatName is the code, and the "Utilities." bit is some way of pointing Access to the address of the Project containing the code.
I know in Excel you can bung standard code in "Personal.xls" which I have used in a similar way, but does anyone know if this can be readily achieved in Access?
Thanks in advance....
When I used to be a proper programmer - i.e. on a real Computer (a Mainframe (is anyone else old enough to remember them???)), I used to build up a variety of general purpose subroutines which could be called from other programs.
Is there an equivalent methodology in VBA?
For example, I have (inherited) a set of Tables which hold a person's full name in various different formats, e.g. "Fred Flintstone", "Flintstone, Fred", "Mr. Fred Flintsone" "Sir Fred Flintstone", "Flintstone, Mr. Fred".
I'm writing code to reformat the names into a standard format, and instead of including this code in each Access Project, it would be nice if there was a way of calling a utility routine (perhaps living in a Project called Utilities?) which could be invoked by something like
Call Utilities.ReformatName(CurrentNameString, BetterNameString)
where ReformatName is the code, and the "Utilities." bit is some way of pointing Access to the address of the Project containing the code.
I know in Excel you can bung standard code in "Personal.xls" which I have used in a similar way, but does anyone know if this can be readily achieved in Access?
Thanks in advance....