Code for Relationship ?

T

TA

Hi guys,
Is it impossible to set relationship between 2 record set
in Access?
Like I have old code from visual foxpro:

Select 1
Use Error_refer
index on CODE tag code

Select 2
use Mainerror
set relation to CODE into Error_ref Additive
Report form ErrorMain to printer

Best regards,
TA
 
G

GreySky

It's called an INNER JOIN.

Select ER.*, ME.*
FROM Error_refer AS ER INNER JOIN Mainerror AS ME
ON ER.Code = ME.Code

David Atkins, MCP
 

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