Hi,
I'm writing a procedure to do some pretty complex stuff, but basically it checks how much stock is available, and allocates what it can to a specific order, and generates a PO if there is insufficient stock for the order.
I am using dao recordsets to do the allocating, but realised that I could have a problem.
What I want (need) to know is whether a recordset (based on a query) automatically updates when the source data is modified (e.g. stock is allocated - reducing the free stock), or whether the data would have to be requeried to reset the data. I ask because obviously I don't want to double allocate stock!?
Plus, if relevant how does one requery a recordset?
I'm writing a procedure to do some pretty complex stuff, but basically it checks how much stock is available, and allocates what it can to a specific order, and generates a PO if there is insufficient stock for the order.
I am using dao recordsets to do the allocating, but realised that I could have a problem.
What I want (need) to know is whether a recordset (based on a query) automatically updates when the source data is modified (e.g. stock is allocated - reducing the free stock), or whether the data would have to be requeried to reset the data. I ask because obviously I don't want to double allocate stock!?
Plus, if relevant how does one requery a recordset?