[AccessD] Function vs Sub

Susan Harkins harkins at iglou.com
Thu Feb 13 10:41:00 CST 2003


> I recently smartened up and started using fuctions in my code, and I've
> got what may be a very dumb question...should I be using "functions" or
> should they be "Public Subs" or ?????? What is the difference. I
> apologize if I am lowering the intelligence quota today, but I just
> haven't come across this and I don't want to go down the wrong path.

==========Generally, a sub executes a task and a function returns a value --
theoretically. This is another one of those "you're wrong if you don't do it
like me" arguments. The truth is, Access doesn't really care.

I use subs only for event procedures and I use functions elsewhere. I manage
to deflect the arrows okay... ;)

Susan H.




More information about the AccessD mailing list