So let me approach this from a different direction, based on the data shown above could you not have something like:
Item |
In Stock |
Issued |
4" |
1 |
|
435 |
4 |
|
6" |
1 |
|
ACT II - HQ |
1 |
|
ACT II - HQ - Controller |
1 |
|
ATV Helmet |
1 |
|
Field Laptop |
1 |
1 |
If this is an acceptable format and every time in your inventory is either in stock or issued you shouldn't have to do anything crazy
You could just use the GROUP BY clause to group on the item name and in your 'in stock' and 'issued' columns have an equation like:
Tot Issued: iif([status] = 'Issued', 1, 0)
and in the TOTALS line (assuming an aggregate query) you would use the SUM function