John,
I just used the "unmatched querry wizard" and it worked very well. Now my
report only shows lots that have not shipped. Thank you. However, I still
have the issue of partial shipments of a lot. For example, each lot has a #
of bins (BinsRcvd- usually about 28) and a weight (LbsRcvd - usually about
38,000). Frequently, not all bins ship out at once. So in ProdShpd there
will be an entry for that LotNo but it may only be for 20 of the 28 bins.
With the report I just created I am not getting the other 10 because that
LotNo appears in the ProdShpd table. Is there a way to make some kind of
subtraction so that I can show the remaining # of bins and pounds?
Of course.
However, I don't know what the expression would be because I cannot
see your database, and you have not informed me how ProdShpd stores
the amount shipped. BinsShpd? LbsShpd? Do you want the discrepancy in
bins, or pounds, or both?
To do a subtraction in a query, change your Query so that it has the
LotNo and whatever fields in ProdShpd are needed for the calculation.
In a vacant Field cell type (for example, again, *I cannot see your
tables*) something like
Shortfall: [ProdRcvd].[BinsRcvd] - NZ([ProdShpd].[BinsShpd])
and use a criterion on this field of > 0 to limit the listing to those
cases where the shipment is not complete. Do the same for the pounds;
put the criterion on a second line so that it will report the
discrepancy whether it's in bins or in pounds. If you do this, be sure
that the IS NULL criterion on [ProdShpd].[LotNo] is on a line by
itself - you want those cases where there are more bins received than
shipped, OR more pounds received than shipped, OR nothing was shipped
at all, and in the query grid, you use separate criteria lines to get
OR logic.
John W. Vinson[MVP]