Your tables are excellent! Create a query that includes all three tables.
You need the first two to get the equipment name and the location name.
Include the following fields in your query:
EquipName, Locationname, EqLocDate. Click on the Sigma (looks liks capital
E) button in the toolbar at the top of the screen. Under EqLocDate, change
Group By to Max. Run the query and you should get an unique list of
equipment and its current location. Base your report on this query.
You haven't said anything about having a table to record equipment being
returned from rental. This will also need to be included in the above query
because the above query will list all equipment that has ever been rented
and will actually show where it was last rented although it may have been
returned.
--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
Over 1150 users have come to me from the newsgroups requesting help
resource@pcdatasheet.com
"L. R. Du Broff" <foo@bar.com.invalid> wrote in message
news:Xns9794DAE056C0CLRD@216.77.188.18...[color=blue]
>I own a small business. Need to track a few hundred pieces of rental
> equipment that can be in any of a few dozen locations. I'm an old-time C
> language programmer (UNIX environment). If the only tool you know how to
> use is a hammer, every problem tends to look like a nail. That said, I
> could solve my problem in C, but it's not the right tool. I need to come
> into the Windows world, and I need to get this done in Access or
> something similar.
>
> I have made a start in Access, and am making good progress, buy I'm
> stymied by a query (or family of queries) that I will need.
>
> I have defined two tables (over-simplified here): Eqpt and Loc for
> attributes of the equipment and location, respectively. Primary Keys are
> EqptID and LocID.
>
> Since the equipment moves around between locations, I have a third table
> with three attributes: EqptID, LocID, and EqLocDate. The date is the
> date on which a piece of equipment was placed at a location. I need a
> query for this third table.
>
> 1. Each piece of equipment will have multiple entries in this table. I
> need to find the most recent (latest date) entry for each piece of
> equipment. This can then be used to generate a report showing, for each
> location, what equipment is currently at that location.
>
> Can anyone help with that query?[/color]