G
Guest
I have an ID card system and would like to create a query that shows how many
cards in a certain range are still valid (haven't been turned in). We
currently have cards numbered from AP150001 through AP150856, with some of
them turned in. Also, the cards are "grouped" together on separate log
sheets (for accountability purposes). Here is an example of what I need:
100 cards (#AP150501 through #AP150600) are on a specific log, with 10 of
them being turned in. I need a query to calculate that 100 cards were
issued, with 90 still outstanding. I tried counting using "Like" statements
and a DCount statement, but nothing brought up the correct information.
"BadgeNumber" is the field and "Person" is the table. Both fields are text.
I didn't create this database, but I have been tasked with querying the
information for reports.
cards in a certain range are still valid (haven't been turned in). We
currently have cards numbered from AP150001 through AP150856, with some of
them turned in. Also, the cards are "grouped" together on separate log
sheets (for accountability purposes). Here is an example of what I need:
100 cards (#AP150501 through #AP150600) are on a specific log, with 10 of
them being turned in. I need a query to calculate that 100 cards were
issued, with 90 still outstanding. I tried counting using "Like" statements
and a DCount statement, but nothing brought up the correct information.
"BadgeNumber" is the field and "Person" is the table. Both fields are text.
I didn't create this database, but I have been tasked with querying the
information for reports.