combine 2 tables in acess

时间:2017-05-16 09:20:41

标签: database vba ms-access merge

hi,

i am looking for a way to combine 2 data tables into 1 in access and then filter the new table.

what i mean by combine is as follows :

table 1 :

data 1

data 2

table 2 :

data 3

data 4

new table :

data 1 data 3

data 1 data 4

data 2 data 3

data 2 data 4

i would like to have the 2 datas put in 1 line and do all the possible combinations of the 2 databases sort of like 2 for or while loop one inside the other (obviously the original databases have several fields for each data)

hope that my explanantion was understandable

thank you in advance for your help

1 个答案:

答案 0 :(得分:0)

如果您使用“数据库”表格,请使用笛卡尔联接:

Select 
    Table1.*, 
    Table2.*
From
    Table1, 
    Table2