Hi, all. Here's my situation.
I've got a relatively simple Access database of abilities for a role-playing game I'm writing. There is a specific format I'd like to be able to display them in, and the built-in Reports functionality is not up to the task, or at least my limited knowledge of it isn't. I asked a friend who's a legit DBA for help, and she couldn't pull it off the way I want either.
I can post detailed specs of what I require if you really want, but the two biggest sticking points seem to be:
- If a field doesn't apply to a particular record (i.e. I left it blank, or in certain cases, it's a boolean field set to "false"), I don't want it to display AT ALL. It is not enough for it to "print" in white, so conditional formatting won't do the trick here; these fields must (non-negotiable requirement) take up NO vertical space on the report for records they don't apply to.
- There is a series of 12 related boolean fields on the most relevant table. (Just so the examples below make sense: Each record is an ability a character can learn, some of these abilities are restricted to being used with certain weapons, if this is the
case these boolean fields are a list of which weapons.) I'd like them to display like this:
if and only if at least one of them is true, there should be, in parentheses, a list of the fields that are true (actually, of specific strings that are not quite the same as the field names, though I can change the field names to
match them if that will help), with a space and comma between each in the event that there is more than one. If
none of these fields are set to true, nothing should display here, including the parentheses. So for example:
- For a technique that isn't restricted by weapon at all, nothing should display.
- For a technique that is specifically for (say) bows, "(Bow)" should display (without the quotes)
- For a technique that can be used with swords and axes, "(Sword, Axe)" should display, again without the quotes.
As I have said, I'm not getting much satisfaction out of the Reports functionality. Therefore I'm guessing that trying to do this entirely within Access is just going to lead to frustration. I'm happy to export to .csv or .xml if someone can suggest a tool that can parse these formats and do what I want, preferably one that's inexpensive and doesn't have too much of a learning curve. This kind of situation can't be that unusual, what do other people do when faced with it?