R
Ruskin Hardie
Standard Access does this, in the Query design.... Choose 'New' and select
'Find Unmatched Query Wizard'
'Find Unmatched Query Wizard'
Ruskin Hardie said:Standard Access does this, in the Query design.... Choose 'New' and select
'Find Unmatched Query Wizard'
Ruskin Hardie said:Yikes... Meant to say, that the example, expects record 1 of Table1 to match
record 1 of Table2, then record 2 of Table1 should match record 2 of Table2
and so on... By placing a Do/Loop inside the current Do/Loop, where we loop
until Rec2.EOF, then we can compare each record of table 1, with every
record in Table2. So you can play with this code and you'll see what I
mean...
Also, meant to add, that I forgot to close the recordset objects (oopss)...
Ruskin Hardie said:Ok, so the below will work fine in this case.... But instead of
'Debug.Print', you could insert the record and field into a table and then
print the records from that table... To do this, at the beginning of the
code add;
DoCmd.RunSQL "DELETE * FROM [Table Name];"
and where the Debug.Print is, in the loop, add;
DoCmd.RunSQL "INSERT INTO [Table Name] ([Record Num]," & _
"[Field Num],[Tab 1 Value],[Tab 2 Value]) VALUES (" & _
myCount & "," & x + 1 & ",'" & Rec1.Fields(x).Value & "','" & _
Rec2.Fields(x).Value & "');"
Frank Dulk said:EG: if Table1 has 10 records and Table2 has 10 records, what happens? Do we
check record 1 of table1 against record 1 of table2
That that I want, therefore I want to create a report of that and also to
send the result for a temporary table or excel.
table 2