You've already received some good replies here, but I'll add my .02
Most commercial loans are full-recourse these days, which means you are on the hook for the loan. In order for your guarantee to mean anything, the lender wants to see that you have the things that matter to them. Meaning, credit, income, and assets.
Of course, they also like to see relevant experience as well, but as Jon stated, if you lack that you can "sometimes" shore that up with an experienced partner or if the property is under the care of a good management company.
I would add that if you have no landlord experience whatsoever you might be better served be starting with a smaller property and work your way up to a foreclosure.
You mention that the property is a foreclosure, but you didn't mention how many units are vacant. Banks are looking for stabilized assets these days and typically require a running occupancy of 85% or better for 3 or more months in a row so that is worth mentioning.
That's not to say that you might not be able to get around that if you have other income streams to mitigate the bank's risk, but if the occupancy is low you're looking at hard money more than conventional financing.