SUMPRODUCT Isn’t The Only SP Kid In Town

If you are a frequent use of SQL Server, or any such enterprise database solution, you are bound to be aware of Stored Procedures (SPs) and the advantages that they bring. In my experience, using SPs is almost de-facto in the SQL Server world.   However, it does not seem so prevalent in the Access databases and applications that I have seen. Presumably, this is because Access applications are very closely bound to the Access database, and the rationale drops off somewhat. But I never use the Access UI myself, although I have created many applications where Access is my … Continue reading SUMPRODUCT Isn’t The Only SP Kid In Town

Typing May Be Good For You

I have written previously about User Defined Types, where I showed what I feel is a good, legitimate use of UDTs, namely the saving of application settings at the start of my procedures, then re-instating them at the end. I have since extended that technique to make it more generic, as follows Public Type ApplicationValues    AppEnableEvents As Boolean    AppScreenUpdating As Boolean    AppDisplayAlerts As Boolean    AppCalculation As XlCalculation End Type Public Function DoSomeStuff() Dim myAppSettings As ApplicationValues     Call AppSettings(State:=”Set”, _                 AppType:=mpAppSettings, _                 AppEvents:=True, _                 AppScreen:=False, _                 AppAlerts:=False, _                 AppCalc:=-1)     On Error GoTo func_error  … main code    func_exit:     Call … Continue reading Typing May Be Good For You