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 MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Joining two fields in access that are not exactly alike!!

Status
Not open for further replies.

aarondewberry

IS-IT--Management
Jul 20, 2005
148
GB
Hi. I have two tables, table1 has a field called WEEKDAY, within that field is say a row containing the text "WED". Table2 has many fields but also has a field called WEEKDAY. But within this WEEKDAY field it might have a row containing the text "MON, TUE, WED" on one row.
What I want to do is match [table1]![WEEKDAY] to [table2]![WEEKDAY] but I want it to show the row that contains "MON, TUE, WED" aswell as all the rows that just contain "WED".
Makes sense? Can this be done?
 
WHERE table2.[WEEKDAY] Like '*' & table1.[WEEKDAY] & '*'

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top