What do you want to do if there are more than 2 funding sources?
Also, since you're new, have a look at the first link in my signature line below. You're almost there with what you posted. If you take it just one level higher, people will usually be a lot more helpful when it comes to code.
--Jeff Moden
Change is inevitable... Change for the better is not.