I have an SQL query that selects all the Requisition data out of two Access tables Requisition and Items. I need to isolate a single set of requisition data at a time and send that information into a preformatted Excel spreadsheet.
SELECT Items.Description, Items.Qty, Items.EstPrice, Items.Supplier
FROM `O:\GAIA Requisition`.Items Items, `O:\GAIA Requisition`.Requisition Requisition
WHERE Requisition.ReqNo = Items.ReqNo AND ((Requisition.ReqNo=?))
This SQL query brings up all of the requisition data I have stored in my database. It has been set up with a parameter, so that the user can enter the required requisition number. How do I store the current requisition number in an open Access record and pass it on to this query so that I can isolate data for one requisition at a time and show it in a preformatted Excel spreadsheet?
GOD is in charge, though men may say, "Not so!
SELECT Items.Description, Items.Qty, Items.EstPrice, Items.Supplier
FROM `O:\GAIA Requisition`.Items Items, `O:\GAIA Requisition`.Requisition Requisition
WHERE Requisition.ReqNo = Items.ReqNo AND ((Requisition.ReqNo=?))
This SQL query brings up all of the requisition data I have stored in my database. It has been set up with a parameter, so that the user can enter the required requisition number. How do I store the current requisition number in an open Access record and pass it on to this query so that I can isolate data for one requisition at a time and show it in a preformatted Excel spreadsheet?
GOD is in charge, though men may say, "Not so!