SpikeTheLobster
Technical User
Hi all,
I have a difficult situation that I can't resolve. The DB has four tables (that matter): I'll call them Main, Headers, Values and Revenues. Main is linked to each of the others in a separate context for each.
What I need is to be able to build a single table with all key values ("Assignment Numbers") from Main, plus their related values (Header No., Value No. and Revenue No. for simplicity) in ONE table, with blanks in columns from incompatible contexts.
That is, lines should read:
Assignment No. | Header No. | Value No. | Revenue No.
1234 123
4321 321
And so on. I've tried using three separate queries (Assignment No. and Header No., Assignment No. and Value No., Assignment No. and Revenue No.) and unioning them, but I only get back two columns: the first two. I read on another post that using User Variables might solve this, but I can't figure out how.
Any pointers would be much appreciated!
I have a difficult situation that I can't resolve. The DB has four tables (that matter): I'll call them Main, Headers, Values and Revenues. Main is linked to each of the others in a separate context for each.
What I need is to be able to build a single table with all key values ("Assignment Numbers") from Main, plus their related values (Header No., Value No. and Revenue No. for simplicity) in ONE table, with blanks in columns from incompatible contexts.
That is, lines should read:
Assignment No. | Header No. | Value No. | Revenue No.
1234 123
4321 321
And so on. I've tried using three separate queries (Assignment No. and Header No., Assignment No. and Value No., Assignment No. and Revenue No.) and unioning them, but I only get back two columns: the first two. I read on another post that using User Variables might solve this, but I can't figure out how.
Any pointers would be much appreciated!