Bogus Mail Merge Results

W

workliveplay

After merging a query from MS Access 2003 to MS Word 2003 I get the auto
number from the table that is a lookup for another table. The query shows the
correct information but the merge results in the auto number associated with
the correct information.

Any help is much appreciated!
 
P

Peter Jamieson

Can you tell us what the SQL for your query is? Does it just select all the
fields in the table that references the lookup? If so, you probably need to
do an explicit join with the lookup table, e.g. instead of

SELECT x.* FROM tablex x ?

try

SELECT x.*, y.* FROM tablex x INNER JOIN tabley y ON x.lookupIDfield =
y.lookupIDfield

or the old-fashioned way

SELECT x.*, y.* FROM tablex x, tabley y WHERE x.lookupIDfield =
y.lookupIDfield

I don't know if that wil fix the problem but it's probably what I would try
in the first instance.

Peter Jamieson
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top