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

Table linking question

Status
Not open for further replies.

hfc6301

MIS
Oct 17, 2006
1
US
I have 2 tables and am trying to find a way to link them. In one table I have a field that is called comments that would have something like "Birdstrike hit windshield" and in the other table I have a field called exceptions that has "bird" in it. I know there is probably not a way to link them, but would appreciate it any help if you know of a way.

Thanks
 
Wild guess here...
[pre]

TableA TableB
FieldA FieldB[blue]
bird Bird[/blue]strike hit windshield
[/pre][tt]
Select TableA.*, TableB.*
From TableA, TableB
WHERE UCase(TableA.FieldA) = Left(UCase(TableB.FieldB), Len(TableA.FieldA)[/tt]


Have fun.

---- Andy

A bus station is where a bus stops. A train station is where a train stops. On my desk, I have a work station.
 
I don't think you can link/join on a "like" in Access but you could use something like this where the "bird" is tableB.FieldB:

Code:
Select TableA.*, TableB.*
From TableA, TableB
WHERE TableA.FieldA Like "*" & TableB.FieldB & "*"

Duane
Hook'D on Access
MS Access MVP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top