NY 240 continues north through Amherst as a two-lane residential boulevard with the Harlem Road moniker. The route remains residential for several blocks, intersecting with NY 5 (Main Street). Passing east of the hamlet of Snyder, NY 240 passes several commercial businesses before becoming residential again north of that junction. The route remains residential for a distance to the intersection with Campus Lane, where it enters exit 6 of I-290 (the Youngmann Expressway). A block to the north of I-290, NY 240 intersects with NY 324 (Sheridan Drive). This intersection serves as the northern terminus of NY 240.