T
Tcs
I have records which contain, among others, 4 columns:
StrNmbr StrName MlgAddr MlgCity
--------- ---------- ---------------- ----------------
1234 WISTERIA 1234 WISTERIA DR WEST PALM BEACH
0 CLARK 3245 CLARK AVE MyCity
I need to fix all rows where StrNmbr = zero and MlgCity = "MyCity", and StrName
is contained in MlgAddr.
My stumbling point *seems* to be matching StrName to a portion of MlgAddr. I'm
trying:
Mid([MlgAddr],InStr(6,[MlgAddr]," ")+1) in the StrName column. It sort of
works, but I only get 3 matches, and I think I should have about many more.
From what I've seen, all street names in MlgAddr start in char pos 6.
Instead of trying to do all this in just one query, I've created several,
performing just ONE step at a time. (One query for matching the city, another
for the street number, etc.) But I was still getting too many. My query was
matching CLARK with WESTHEIMER. So I thought that perhaps I had too many
contraints in one query. Splitting them up hasn't helped. Changing my
contraint for the street name has, but now it's too much, asd I'm getting back
too little.
Can someone please shed some light on this problem for me?
Much appreciated, thanks in advance,
Tom
StrNmbr StrName MlgAddr MlgCity
--------- ---------- ---------------- ----------------
1234 WISTERIA 1234 WISTERIA DR WEST PALM BEACH
0 CLARK 3245 CLARK AVE MyCity
I need to fix all rows where StrNmbr = zero and MlgCity = "MyCity", and StrName
is contained in MlgAddr.
My stumbling point *seems* to be matching StrName to a portion of MlgAddr. I'm
trying:
Mid([MlgAddr],InStr(6,[MlgAddr]," ")+1) in the StrName column. It sort of
works, but I only get 3 matches, and I think I should have about many more.
From what I've seen, all street names in MlgAddr start in char pos 6.
Instead of trying to do all this in just one query, I've created several,
performing just ONE step at a time. (One query for matching the city, another
for the street number, etc.) But I was still getting too many. My query was
matching CLARK with WESTHEIMER. So I thought that perhaps I had too many
contraints in one query. Splitting them up hasn't helped. Changing my
contraint for the street name has, but now it's too much, asd I'm getting back
too little.
Can someone please shed some light on this problem for me?
Much appreciated, thanks in advance,
Tom