I can't edit my posts and I made a stupid mistake when I converted my SQL to generic form for the above reply...

So besides replacing all of the "OfDBF" instances with your own real names, you'll also have to add an essential comma I accidentally deleted from my example. It should go right after "FolderOfDBF'".