Hi,
The lookup wizard / lookup table feature is great for making a meaningless INT key meaningful, but I have a situation where a record can't be described by a single field, so I need to concatenate 2 fields to generate a description, one of which is a foreign key to another table; the other is a straightforward date field. What's the best way to go about dealing with this?
In other words, I'm in the Editor for Table A. It has a field which is a foreign key to Table B, which is the situation handled by the lookup table wizard, provided Table B has a suitable "name" field to use as the display field. However, Table B has no single field that does the job, and is best described by a combination of one date field plus the name field in Table C, whose key is in Table B.
I can't create a dummy field in the "Query/SQL" section to use in the lookup, because the Wizard uses only the actual table fields and isn't affected by the Query/SQL code. I can't use the Wizard "custom expression" to access another table (as far as I can tell).
I can partly get round it by actually adding a further field to Table B which contains the concatenation I want, but I need this field to be added automatically e.g. by an event.
Could anyone please recommend a course of action?
Regards,
Peter