M
Michelle
Not sure how to code this. I have a DB that keeps track of Equipment I need
to also keep track of who used the euqipment (who it is assigned to and who
it was assigned to) On my employee table I have a sub from called equipment
where you select the ID that is assigned to them now what I need to do is
once the equipment is no longer assigned to them I would like to copy the
IDTag and Employee 3 over into another table that houses the old equipment
assignments and then delete that piece of equipment from that users current
set of equipment.
tblOldEquipment
TagID
EmpName
tblEquipment
IDTag
EquipType
Locaiton
LocationDesc
Mfg
Model
SerialNum
PONum
Contract
WarrantyType
WarrantyExpDate
Surplus
SurplusDate
InventoryDate
Notes
tblEmployee
ID
FName
MI
LName
JobTitle
Location
I have a query that does the following:
INSERT INTO tblOldEquipAssign ( IDTag, EmpName )
SELECT qurEquipEmpAsg.IDTag, [FName] & " " & [LName] AS FullName
FROM tblEmployees RIGHT JOIN qurEquipEmpAsg ON tblEmployees.ID =
qurEquipEmpAsg.EMPID;
to also keep track of who used the euqipment (who it is assigned to and who
it was assigned to) On my employee table I have a sub from called equipment
where you select the ID that is assigned to them now what I need to do is
once the equipment is no longer assigned to them I would like to copy the
IDTag and Employee 3 over into another table that houses the old equipment
assignments and then delete that piece of equipment from that users current
set of equipment.
tblOldEquipment
TagID
EmpName
tblEquipment
IDTag
EquipType
Locaiton
LocationDesc
Mfg
Model
SerialNum
PONum
Contract
WarrantyType
WarrantyExpDate
Surplus
SurplusDate
InventoryDate
Notes
tblEmployee
ID
FName
MI
LName
JobTitle
Location
I have a query that does the following:
INSERT INTO tblOldEquipAssign ( IDTag, EmpName )
SELECT qurEquipEmpAsg.IDTag, [FName] & " " & [LName] AS FullName
FROM tblEmployees RIGHT JOIN qurEquipEmpAsg ON tblEmployees.ID =
qurEquipEmpAsg.EMPID;