Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I am trying to compare two records from two tables.

Status
Not open for further replies.

kavya

Programmer
Feb 21, 2001
83
0
0
US
I am trying to compare two records from two tables.
Tblu and tblsub and create a table tblunion with matched records.

Both the tables have a common field 'filename'.

Can some one give me the example of the code.

Thanks alot.
 
Create a new query and paste this SQL in then Run it.


SELECT tblU.FILENAME INTO tblUNION
FROM tblU INNER JOIN tblSUB ON tblU.FILENAME = tblSUB.FILENAME ;
 
hi bdmclennan,

Thanks for your reply. But I was looking for code in module that opens the recordset and then does the comparison.
Thanks once again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top