I am using VBA behind MS Access Say I have global methods foo1 and foo2 that gets the same arguments but do different things. I know that in C++ I can assign a function an alias. Something like: instead of:
If (term) then
foo1 arg1, arg2, arg3
else
foo2 arg1, arg2, arg3
End If
I want to write:
Var new_func = Iff (term, foo1,foo2)
new_func arg1, arg2, arg3
Can I do this on vba?