I have a database that consists of 5 tables:
- Facility - Facility Name, Facility ID
- Building - Bldg Name, Bldg ID
- Floor - Floor Name, Floor ID
- Department - Dept Name, Dept ID
- Device Type - Device Type, Device ID
All equipment at the facility is defined by where and what it is so concatenating these items will identify a piece of equipment (almost). Besides the combining of the 5 ID fields I need a numeric field to uniquely identify which piece of equipment satisfies the 5. So I might have,
MGMN01CACLWS01, MGMN01CACLWS02, MGMN01CACLWS03, ... as workstations in one department
MGCTMFEMRGMP01, MGCTMFEMRGMP02, MGCTMFEMRGMP03, ... as multifunction printers in a different department
and so on, always starting at number 1 for each unique combination of the 5 concatenated fields.
What code or key could be used in Access to determine/create these last two characters of the device name after the other 5 fields are entered.
This Device name will go into a 6th table that contains other data also such as:Inventory - Serial No, Device Name (as generated above), Owner, .....
Any help on this would be greatly appreciated.