MikeDutcher
Technical User
My Access database links to ~43,000 record table on SQL SERVER.
Extensive use of VBA, small tables read into arrays, complex array calculations (actuarial), public variables (retain info as query moves in and out of VBA), scores of functions.
I'm optimizing the VBA (replacing IIFs with IF THEN ELSE where options involve calls to complex functions).
Query was running in 3 minutes, 10 seconds.
After some revisions, 2 minutes & 10 seconds (1 minute is big as a million record input file looms)
Hooray!! Save this version. And so I do.
Now if I so much as add a '*' to a VBA comment, I'm back to ~ 3 minutes run time.
I copy back my fast version. Still fast. But any VBA revision 'ruins' the speed.
Any ideas as to why the 'stars are aligned' on my fast version and why they become 'unaligned' with the least provocation?
Extensive use of VBA, small tables read into arrays, complex array calculations (actuarial), public variables (retain info as query moves in and out of VBA), scores of functions.
I'm optimizing the VBA (replacing IIFs with IF THEN ELSE where options involve calls to complex functions).
Query was running in 3 minutes, 10 seconds.
After some revisions, 2 minutes & 10 seconds (1 minute is big as a million record input file looms)
Hooray!! Save this version. And so I do.
Now if I so much as add a '*' to a VBA comment, I'm back to ~ 3 minutes run time.
I copy back my fast version. Still fast. But any VBA revision 'ruins' the speed.
Any ideas as to why the 'stars are aligned' on my fast version and why they become 'unaligned' with the least provocation?