Here is the query that works in SSMS and in EXCEL without the parameters. But when I put the '?' in and then put values (01/01/2010) and (01/31/2010) in the parameter cells it doesn't work.
SELECT o.revenue_code_id AS [Revenue Code],
o.id AS [Order #],
m.id AS [Movement id],
m.loaded,
m.move_distance,
so.location_id AS [Org Loc Id],
so.location_name AS [Org Loc Name],
so.city_name AS [Org City],
so.state AS [Org State],
sd.location_id AS [Dest Loc Id],
sd.location_name AS [Dest Loc Name],
sd.city_name AS [Dest City],
sd.state AS [Dest State],
s.actual_arrival AS [Actual Ship Date]
FROM orders o
LEFT OUTER JOIN movement_order mo
ON o.company_id = mo.company_id
AND o.id = mo.order_id
LEFT OUTER JOIN movement m
ON m.company_id = mo.company_id
AND m.id = mo.movement_id
LEFT OUTER JOIN stop s
ON s.company_id = o.company_id
AND s.id = o.shipper_stop_id
LEFT OUTER JOIN stop sd
ON m.company_id = sd.company_id
AND m.dest_stop_id = sd.id
LEFT OUTER JOIN stop so
ON mo.company_id = so.company_id
AND mo.movement_id = so.movement_id
--and so.stop_type = 'PU'
WHERE ( s.actual_arrival BETWEEN ? AND ? )
AND m.move_distance > 150
AND m.status <> 'V'
AND so.stop_type = 'PU'
ORDER BY 1,
2,
3