ChesterPTR
New member
- Local time
- Today, 08:47
- Joined
- Nov 9, 2009
- Messages
- 6
Hello there.
I have a UNION query called qry_qtypersheet_check with two fields [Part_No] and [Qty_per_Sheet], it pulls data from 3 different quaries and show records WHERE Qty_per_Sheet IS NULL.
For database to process information properly, every Part_No needs to have Qty_per_Sheet assigned, but it may occur that person responsible of adding information do database did not add QTY for particular part yet.
So on the form I have command button with Event Procedure that perform some processing but before it does I want it to check if qry_qtypersheet_check returns any records. If it does I want to stop that procedure and open that query to show records with parts that are missing qty_per_sheet value. If query does not return any records, I want to continue with Event Procedure.
I hope I make enough sense.
Any help will be much appreciated.
I have a UNION query called qry_qtypersheet_check with two fields [Part_No] and [Qty_per_Sheet], it pulls data from 3 different quaries and show records WHERE Qty_per_Sheet IS NULL.
For database to process information properly, every Part_No needs to have Qty_per_Sheet assigned, but it may occur that person responsible of adding information do database did not add QTY for particular part yet.
So on the form I have command button with Event Procedure that perform some processing but before it does I want it to check if qry_qtypersheet_check returns any records. If it does I want to stop that procedure and open that query to show records with parts that are missing qty_per_sheet value. If query does not return any records, I want to continue with Event Procedure.
I hope I make enough sense.
Any help will be much appreciated.