简体   繁体   中英

Microsoft Access inventory report

I have an Access database with four tables. One the holds the locations of our remote sites and the other three are tables of equipment, their location, and their configuration. For example:

Table1 : Locations

  • Location1, Address1
  • Location2, Address2
  • Location3, Address3

Table2: Equipment1

  • Serial1, Location1
  • Serial2, Location3
  • Serial3, Locaiton3

Table3: Equipment2

  • Serial1, Locaiton2

Table4: Equopment3

  • Serial1, Location1
  • Serial2, Location2
  • Serial3, Location3

How can I create a report that lists the equipment at each location:

Location1:

  • Equipment1, Serial1
  • Equipment3, Serial1

Location2:

  • Equipment2, Serial1
  • Equipmetn3, Serial2

Location3:

  • Equipment1, Serial2
  • Equipment1, Serial3
  • Equipment3, Serial3

I do have the locations in each of the equipment tables related to the ID of the Locations table.

I have been able to make nice looking reports for each piece of equipment. But, I would like most to have an "Inventory" report like shown above. Any suggestions on even where to start would be greatly appreciated.

I would do a union query, something like

Select "Equipment1" as SourceTable, Serial, Location from [Equipment1]
Union all select "Equipment2", Serial, Location from [Equipment2]
Union all select "Equipment3", Serial, Location from [Equipment3]

Save this query and you can use it in another query or report to sort and display as needed.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM