Hi All,
Ok I have a table [TblItems]- it lists items with a unique reference
code; lets say there are 4 items [RefCode]:
Item RefCode
1 ABC1
2 ABC2
3 ABC3
4 ABC4
I have a query [QryUnavail] that does some calculations on other
tables and tells me which items are currently unavialble - this puts
the RefCode of unavailable items into a column [UnavailableItem s]; for
example if ABC2 was unavailable
<code <code UnavailableItem s
...... .... ABC2
What I need is another query which list all items which are currently
available, so ABC1, ABC3 and ABC4 in this case.
I thought that if I have a query that lists all [RefCodes], except
where the countif of that [RefCode] in the column [UnavailableItem s]
is greater than 1, I could achive this but I can't work out how to
achieve this.
I'm an access newbie but in using what I know coupled with Excel type
formula structure this whould be something like:
Countif([QryUnavail]![UnavailableItem s],[RefCode])
I could then use the criteria ="0" to show only available items
Any help appreciated,
Thanks, JW191
Ok I have a table [TblItems]- it lists items with a unique reference
code; lets say there are 4 items [RefCode]:
Item RefCode
1 ABC1
2 ABC2
3 ABC3
4 ABC4
I have a query [QryUnavail] that does some calculations on other
tables and tells me which items are currently unavialble - this puts
the RefCode of unavailable items into a column [UnavailableItem s]; for
example if ABC2 was unavailable
<code <code UnavailableItem s
...... .... ABC2
What I need is another query which list all items which are currently
available, so ABC1, ABC3 and ABC4 in this case.
I thought that if I have a query that lists all [RefCodes], except
where the countif of that [RefCode] in the column [UnavailableItem s]
is greater than 1, I could achive this but I can't work out how to
achieve this.
I'm an access newbie but in using what I know coupled with Excel type
formula structure this whould be something like:
Countif([QryUnavail]![UnavailableItem s],[RefCode])
I could then use the criteria ="0" to show only available items
Any help appreciated,
Thanks, JW191
Comment