G
Guest
Hi people,
I have the table with ip range, columns "start ip" and "end ip", site id.
I run the query to find out if the IP fits into range. If it is positive
then return the IP range and site code.
I have tested it with 6 various IPs address and not every IP I supply
returns IP range and site code. If I go to look up that IP manualy, the range
is there for that IP. But by some reason it does not return the range.
My query is:
SELECT Trim([Enter IP here]) AS Searched_IP, sites_ipranges.FirstIP,
sites_ipranges.LastIP, sites_ipranges.SiteID,
FROM sites_ipranges
WHERE (((Trim([Enter IP here])) Between [sites_ipranges]![FirstIP] And
[sites_ipranges]![LastIP]))
Please ask questions and help to find a solution,
Thanks a lot,
Sergei
I have the table with ip range, columns "start ip" and "end ip", site id.
I run the query to find out if the IP fits into range. If it is positive
then return the IP range and site code.
I have tested it with 6 various IPs address and not every IP I supply
returns IP range and site code. If I go to look up that IP manualy, the range
is there for that IP. But by some reason it does not return the range.
My query is:
SELECT Trim([Enter IP here]) AS Searched_IP, sites_ipranges.FirstIP,
sites_ipranges.LastIP, sites_ipranges.SiteID,
FROM sites_ipranges
WHERE (((Trim([Enter IP here])) Between [sites_ipranges]![FirstIP] And
[sites_ipranges]![LastIP]))
Please ask questions and help to find a solution,
Thanks a lot,
Sergei