Snappy2873
Programmer
Hello everyone,
First of all, i have a form with it's data source being the result set of the following query.
The processing of this form consists of entering shipping information and then clicking a button to execute the "Shipment complete" macro which will then finalize and populate relevant data to the corresponding tables. The reasoning for this query was to limit the shipment personel from shipping a record unless it had a "P" (pending) status. The query pulls in records with only this status for validation purposes. The original query was as follows:
This result set gave free reign to the records in the database and would allow the shipment personel to ship a record before it became "P" status, hence the reasoning for the query at the top of the page. Now the first query limits the results and choices of the "find record" but creates an error when trying to "update" through a query. The second query "original", allows for the update in the record and another problem in that it "overrides" the status setting. You might ask "why dont you add a parameter to the original??", because I had to join the other table to it for the correct result set. Should I throw an "update" statement in the new query? This might sound like a mess but any reccomedations or ideas would br greatly appreciated.
Thanks,
snappy
First of all, i have a form with it's data source being the result set of the following query.
Code:
SELECT Silo_Clientelle.*, TANDEM_DLT.SER_NUM, TANDEM_DLT.PT_NUMBR, TANDEM_DLT.STATUS
FROM Silo_Clientelle INNER JOIN TANDEM_DLT ON (Silo_Clientelle.TSIOrderNumber = TANDEM_DLT.TDM_TSI_IN) AND (Silo_Clientelle.TandemOrderNumber = TANDEM_DLT.TDM_ORD_NO)
WHERE ((TANDEM_DLT.STATUS) = "P");
The processing of this form consists of entering shipping information and then clicking a button to execute the "Shipment complete" macro which will then finalize and populate relevant data to the corresponding tables. The reasoning for this query was to limit the shipment personel from shipping a record unless it had a "P" (pending) status. The query pulls in records with only this status for validation purposes. The original query was as follows:
Code:
SELECT * FROM Silo_Clientelle
This result set gave free reign to the records in the database and would allow the shipment personel to ship a record before it became "P" status, hence the reasoning for the query at the top of the page. Now the first query limits the results and choices of the "find record" but creates an error when trying to "update" through a query. The second query "original", allows for the update in the record and another problem in that it "overrides" the status setting. You might ask "why dont you add a parameter to the original??", because I had to join the other table to it for the correct result set. Should I throw an "update" statement in the new query? This might sound like a mess but any reccomedations or ideas would br greatly appreciated.
Thanks,
snappy