Microsoft
Software
Hardware
Network
Question : Access Query - Compare part of fields in two tables
Hello - my situation is this - I have two access 2007 tables, I want to find all records that match from table 1 in table 2 - however, the field I am matching from table 1 may match any part of the field in table 2 -
Table 1 - Field - Case Number / 123456
Table 2 - Field - Docket Number
find match in all or any part of Docket Number Field; example: xx-123456 or 123456xx or xx123456xx or exact match 123456
I have many records to match the fields may contain text and numbers; they are formatted as text.
I would prefer to write the formula in the query but could attempt it in SQL if that would be better.
Answer : Access Query - Compare part of fields in two tables
Select table1.*, table2.* from table1 inner join table2
on table2.[docket number] like "*" & table1.[case number] & "*"
Random Solutions
get mysql field comments
Macro creating a chart from table doesn't work
Applications go not responding when file/insert open dialog under windows XP
unknown exception EBAB001A occurs when trying to backup a drive with Norton Ghost 9.0
Using Exmerge on Exchange 5.5 with mailbixes > 2Gb
Access 2007 Record-Locking Information file does not automatically delete, and cannot be deleted.
Format Text Field in Crystal Reports to Title Case
SQL Server Agent sp_send_dbmail sending duplicate emails
530 authentication required for relay from one sender/company
How do I get a WPF DataGrid to auto refresh when an underlying SQL Server table is updated?