G
Guest
Hello,
I need compare the results of two queries, actually the returned records(one
query will return records with the column "ProductPartID" & "UnitsOnHand"
which representing the number of units we have in stock in the inventory
database for a specific product, the other query will return "ProductPartID"
& "UnitsNeedToUse", which is the number of units we need take out from the
inventory database this time for a specific product), from either of the
query will be a set of records but not only one record. Of course the whole
purpose of module is going to return the value of "Results" as True or false
under the condition if "UnitsOnHand">"UnitsNeedToUse".
I am just wondering whether I need to store the results into two dynamic
array to compare the corresponding fields, and it sounds crazy if using this
method.
Or use other methods(SQL query, or recordset) to achieve the goal. But how
can I compare the results through a statment which I do not know exactly?
something like:
iif([UnitsOnHand] >= [UnitsNeedToUse], "result = True", "result = False")
where
Query1.ProductPartID = Query2.ProductPartID
I need your help for which programing architecture I should use and what's
that? I mean the exactly functions or statement I should look for, could you
give me more details as possible? Or is there any article you knew which
provide the solutions for my particular case?
Thanks in advance!!
Jess
I need compare the results of two queries, actually the returned records(one
query will return records with the column "ProductPartID" & "UnitsOnHand"
which representing the number of units we have in stock in the inventory
database for a specific product, the other query will return "ProductPartID"
& "UnitsNeedToUse", which is the number of units we need take out from the
inventory database this time for a specific product), from either of the
query will be a set of records but not only one record. Of course the whole
purpose of module is going to return the value of "Results" as True or false
under the condition if "UnitsOnHand">"UnitsNeedToUse".
I am just wondering whether I need to store the results into two dynamic
array to compare the corresponding fields, and it sounds crazy if using this
method.
Or use other methods(SQL query, or recordset) to achieve the goal. But how
can I compare the results through a statment which I do not know exactly?
something like:
iif([UnitsOnHand] >= [UnitsNeedToUse], "result = True", "result = False")
where
Query1.ProductPartID = Query2.ProductPartID
I need your help for which programing architecture I should use and what's
that? I mean the exactly functions or statement I should look for, could you
give me more details as possible? Or is there any article you knew which
provide the solutions for my particular case?
Thanks in advance!!
Jess