I am trying to do a data dump into Excel. One of my constraints isn't working so I am trying to fix it by looking at the SQL code. I have never used SQL and only know VBA. This is what I am trying. I need it to say V_ORDER_LINES.DATE_ITEM_PROM is less then one week from today.
SELECT V_ORDER_LINES.ORDER_NO, V_ORDER_LINES.SO_LINE, V_ORDER_LINES.DATE_ITEM_PROM, V_ORDER_LINES.DATE_SHIP, V_ORDER_LINES.PART, V_ORDER_LINES.QTY_ORDERED, V_ORDER_LINES.QTY_SHIPPED
FROM V_ORDER_LINES V_ORDER_LINES
WHERE (V_ORDER_LINES.DATE_ITEM_PROM<{day,7,CURDATE()})