应该是:
sql = "select * from label where 协议日期< '" & "#" & f & "#"