Question : Access-list

It's been a long time since I wrote an ACL, but, below is what i'm trying to place on a 3750G

access-list 20 permit 10.2.0.0 0.0.255.255
access-list 20 permit 10.3.0.0 0.0.255.255
access-list 20 permit 10.4.0.0 0.0.255.255
access-list 20 permit 10.5.0.0 0.0.255.255
access-list 20 permit 10.6.0.0 0.0.255.255
access-list 20 permit 10.7.0.0 0.0.255.255
access-list 20 deny 172.18.1.0 0.0.255.255
access-list 20 deny 172.18.9.0 0.0.255.255
access-list 20 deny 172.18.30.0 0.0.255.255
access-list 20 deny 172.18.96.0 0.0.255.255
access-list 20 deny 172.18.97.0 0.0.255.255
access-list 20 deny 172.18.98.0 0.0.255.255
access-list 20 permit 172.18.0.0 0.0.127.255

However it will not accept it, it keeps converting it to a /16.

So, will the below acl work?

access-list 20 permit 10.2.0.0 0.0.255.255
access-list 20 permit 10.3.0.0 0.0.255.255
access-list 20 permit 10.4.0.0 0.0.255.255
access-list 20 permit 10.5.0.0 0.0.255.255
access-list 20 permit 10.6.0.0 0.0.255.255
access-list 20 permit 10.7.0.0 0.0.255.255
access-list 20 deny   172.18.0.0 0.0.255.255
access-list 20 permit 172.18.0.0 0.0.127.255

Thanks


Answer : Access-list

use the tabledef

dim td as dao.tabledef, db as dao.database
set db=currentdb

for each td in db.tabledefs
    if left(td.name, 8)="tblType1" then
        db.execute "drop table ["& td.name &"]"
    end if
next
Random Solutions  
 
programming4us programming4us