Here is the SQL code:
UPDATE COMPUINV, tblups INNER JOIN (tblsites INNER JOIN (tblprinters
INNER JOIN (tblhandhelds INNER JOIN (tblcomputers INNER JOIN
tblemployees ON tblcomputers.NetworkID = tblemployees.NetworkID) ON
tblhandhelds.HandheldID = tblemployees.HandheldID) ON
tblprinters.PrinterID = tblemployees.PrinterID) ON tblsites.SiteID =
tblemployees.SiteID) ON tblups.UPSID = tblemployees.UPSID SET
COMPUINV.Site = tblsites!Site, COMPUINV.Location = tblsites!Location,
COMPUINV.[User Name] = tblemployees!EmployeeName, COMPUINV.[Computer
Make/Model] = tblcomputers!Make, COMPUINV.[Serial No/Service Tag] =
tblcomputers!SerialNumber, COMPUINV.Type = tblcomputers!Type,
COMPUINV.SPEED = tblcomputers!CPUSPEED, COMPUINV.RAM =
tblcomputers!RAM, COMPUINV.HD = tblcomputers!RAM,
COMPUINV.WindowsVersion = tblcomputers! WindowsVersion,
COMPUINV.OfficeVersion = tblcomputers!OfficeVersion, COMPUINV.CD =
tblcomputers!CDROMSpeed, COMPUINV.[Jack #] = tblcomputers!
JackNumber, COMPUINV.PRINTER = tblprinters!Make, COMPUINV.[IP
Address] = tblcomputers!IPAddress, COMPUINV.LastUpdate =
tblcomputers! LastWindowsUpdate, COMPUINV.[UPS Inservice Date] =
tblups!InserviceDate, COMPUINV.Registered = tblups!Registered,
COMPUINV.HandheldModel = tblhandhelds!Model,
COMPUINV.HandheldPhoneNumber = tblhandhelds! PhoneNumber,
COMPUINV.HandheldSerial = tblhandhelds!SerialNumber, COMPUINV.Spybot
= tblcomputers!Spybot, tblcomputers.NetworkID =
tblemployees!NetworkID;
The table COMPUINV is the single table that holds all of the
information. All other tables are new and related
together(Normalized) I want to populate those table from the
existing single table. I hope this makes things clearer.
I currently have the computer inventory at work in one table. I
have created new tables with relationships and I want to append the
data in the existing table so that it populates all of the new
tables. Thus keeping employees associated with their PC, printers,
etc. I have tried creating an append query but when ran it says it
will append 0 rows. Any idea?
It's almost NEVER either necessary or a good idea to populate new
tables with empty "placeholder" records, if that's what you mean.
Are you trying to extract data from a single wide-flat table into
multiple normalized tables? If so, note that the Append query
should be based JUST on the wide-flat table; if you join it to the
target table, you will select only those records which already
exist in the target (none, that is). Perhaps you could post the SQL
view of the append query.