
Signature
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
Thanks.
I am not actually attempting to match the fields that have the dashes in
them. The join is on the IP Address field that looks like 10.1.1.1 or
10.1.1.243 or 10.1.1.89, etc. Should this be working?

Signature
Matthew Tisdel
South Carolina
> Microsoft mutilated Access from version 2000 onwards so that it does not
> match fields reliably if there is a dash in the field if you use the Like
[quoted text clipped - 28 lines]
> >
> > Thanks,
Allen Browne - 10 Apr 2006 16:52 GMT
It should provided the fields are identical, i.e. no leading zeros or
spaces.
If you had control over the database structure, you might consider storing
IP addresses in 4 fields of type Byte.

Signature
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
> Thanks.
>
[quoted text clipped - 38 lines]
>> >
>> > Thanks,
Michel Walsh - 11 Apr 2006 12:54 GMT
Hi,
You want a match if the first three octets are equal?
SELECT a.*, b.*
FROM a INNER JOIN b
ON Left(a.ip, InStrRev( a.ip, ".")) = Left( b.ip, InStrRev( b.ip,
"." ))
Hoping it may help,
Vanderghast, Access MVP
> Thanks.
>
[quoted text clipped - 38 lines]
>> >
>> > Thanks,
Matthew Tisdel - 11 Apr 2006 13:31 GMT
Thanks for the help.
Actually, I need all 4 octets to match for the join. I have the IP addresses
in both tables, however, one of the tables have MAC Addresses and I need to
put those MAC Addresses in the other table.

Signature
Matthew Tisdel
South Carolina
> Hi,
>
[quoted text clipped - 50 lines]
> >> >
> >> > Thanks,
Matthew Tisdel - 11 Apr 2006 14:04 GMT
Thanks. I got it to work with the help of a developer friend.
The MAC Address table had the IP Addresses padded with space. I had to use
New Field Name : Trim([Field Name])
in the query.
Thanks,

Signature
Matthew Tisdel
South Carolina
> Thanks for the help.
>
[quoted text clipped - 56 lines]
> > >> >
> > >> > Thanks,