>But the bug isn't in the .dbc - it works for me. It's the GenDbc which incorrectly generates the view building code. I ended up defining the views in code, and this (gendbc + manual fixes) code actually creates a .dbc with view definitions, and they work fine.
Have you looked at GenDBCX by Steve Arnot (
http://www.stevearnott.com/)? It works much better than Gendbc
BOb