This has caught me out a couple of times before. My preferred solution is to use the Value property:


cratedict.add replace(trim(Rs("bindtype").Value),"_",""),Rs("rate").Value

Perhaps a tad...