H
hoachen
I am using 2003 version of access.
I have two tables:
Table1 (Recipt#, Item#, RcdQty, Cust#)
Table2 (Order#, OrderQty, OrderDate, Cust#, price, Item#)
What i intent to do is to eliminate the item have been refund (with the "-"
in OrderQty) then count how many recipt been issued base on unique recipt#
here is my pseudocode:
If the OrderQty AND price on table2 =="-"
Then
check the item# on table2 agaist table1 if MATCHES Continue to check
Then
check the cust# on table2 agaist table1 if MATCHES
Then
I don' want to count these recipt#
End if
How can i put this in code and where?
I have two tables:
Table1 (Recipt#, Item#, RcdQty, Cust#)
Table2 (Order#, OrderQty, OrderDate, Cust#, price, Item#)
What i intent to do is to eliminate the item have been refund (with the "-"
in OrderQty) then count how many recipt been issued base on unique recipt#
here is my pseudocode:
If the OrderQty AND price on table2 =="-"
Then
check the item# on table2 agaist table1 if MATCHES Continue to check
Then
check the cust# on table2 agaist table1 if MATCHES
Then
I don' want to count these recipt#
End if
How can i put this in code and where?