Hello,
I have a database that has over 20 tables in it and am using Access 2000. Unfortunately I cannot change the structure as it performs specific functions, so I am stuck with it.
I have created a Union Query from these tables yaking data from 5 fields using the Serial Number entered by the user.
SELECT[Workstation].UnitPart,PropertyTag,UnitSerial,Date,Technician
FROM[Workstation]
WHERE((([Workstation].UnitSerial)=[Enter Serial No.];
UNION
SELECT[LAPTOP].UnitPart,PropertyTag,UnitSerial,Date,Technician
FROM[LAPTOP]
WHERE((([LAPTOP].UnitSerial)=[Enter Serial No.];
UNION
SELECT[MONITOR].UnitPart,PropertyTag,UnitSerial,Date,Technician
FROM[MONITOR]
WHERE((([MONITOR].UnitSerial)=[Enter Serial No.];
UNION
SELECT[PRINTER].UnitPart,PropertyTag,UnitSerial,Date,Technician
FROM[PRINTER]
WHERE((([PRINTER].UnitSerial)=[Enter Serial No.];
UNION
SELECT[SMARTUPS].UnitPart,PropertyTag,UnitSerial,Date,Technician
FROM[SMARTUPS]
WHERE((([SMARTUPS].UnitSerial)=[Enter Serial No.];
Etc...
I use a bar code scanner to scan the serial number, and it goes through the tables and returns the results along with the other specified fields.
I would like to scan up to 16 or more different serial numbers and have it return the results. Perhaps scan the first 16 serial numbers, then run the query? Is that possible. The serial numbers are unique and will return a combination of laptops, printers, monitors, etc...
I have created a report from the above union query and it works perfectly with only one serial number entered.
I am a novice with Access 2000 and even more of a novice with SQL.
Any help and guidance would be most appreciated.
Many thanks!
//m0aje//
I have a database that has over 20 tables in it and am using Access 2000. Unfortunately I cannot change the structure as it performs specific functions, so I am stuck with it.
I have created a Union Query from these tables yaking data from 5 fields using the Serial Number entered by the user.
SELECT[Workstation].UnitPart,PropertyTag,UnitSerial,Date,Technician
FROM[Workstation]
WHERE((([Workstation].UnitSerial)=[Enter Serial No.];
UNION
SELECT[LAPTOP].UnitPart,PropertyTag,UnitSerial,Date,Technician
FROM[LAPTOP]
WHERE((([LAPTOP].UnitSerial)=[Enter Serial No.];
UNION
SELECT[MONITOR].UnitPart,PropertyTag,UnitSerial,Date,Technician
FROM[MONITOR]
WHERE((([MONITOR].UnitSerial)=[Enter Serial No.];
UNION
SELECT[PRINTER].UnitPart,PropertyTag,UnitSerial,Date,Technician
FROM[PRINTER]
WHERE((([PRINTER].UnitSerial)=[Enter Serial No.];
UNION
SELECT[SMARTUPS].UnitPart,PropertyTag,UnitSerial,Date,Technician
FROM[SMARTUPS]
WHERE((([SMARTUPS].UnitSerial)=[Enter Serial No.];
Etc...
I use a bar code scanner to scan the serial number, and it goes through the tables and returns the results along with the other specified fields.
I would like to scan up to 16 or more different serial numbers and have it return the results. Perhaps scan the first 16 serial numbers, then run the query? Is that possible. The serial numbers are unique and will return a combination of laptops, printers, monitors, etc...
I have created a report from the above union query and it works perfectly with only one serial number entered.
I am a novice with Access 2000 and even more of a novice with SQL.
Any help and guidance would be most appreciated.
Many thanks!
//m0aje//