jancliff
09-24-2007, 09:46 AM
I had this working last night after reading a post on this site for help. Today it is not working and I confused. I imported some data from an excel spreadsheet into a new table called tbl_Supplier (field names OrderNo and Supplier). I have another table called tbl_Input with fields Supplier and OrderNo (along with other fields).
Basically I wanted to update all the blank Supplier names in tbl_Input with the Supplier names in the table tbl_Supplier using a match on the OrderNo.
UPDATE tbl_Supplier INNER JOIN tbl_Input ON tbl_Supplier.OrderNo = tbl_Input.OrderNo SET tbl_Input.Supplier = [tbl_Supplier].[Supplier];
There is data in the fields Supplier and OrderNo for the table tbl_Supplier but when I view the results they are all blank. I checked manually (search and find) and the ordernos do exist in both tables.
I thought I had it the wrong way round but if I do it the other way then it takes all the supplier names out of the tbl_supplier as the supplier name in tbl_input are all blank. Any help would be gretly appreciated, I have compacted and repaired the database just in case also.
Basically I wanted to update all the blank Supplier names in tbl_Input with the Supplier names in the table tbl_Supplier using a match on the OrderNo.
UPDATE tbl_Supplier INNER JOIN tbl_Input ON tbl_Supplier.OrderNo = tbl_Input.OrderNo SET tbl_Input.Supplier = [tbl_Supplier].[Supplier];
There is data in the fields Supplier and OrderNo for the table tbl_Supplier but when I view the results they are all blank. I checked manually (search and find) and the ordernos do exist in both tables.
I thought I had it the wrong way round but if I do it the other way then it takes all the supplier names out of the tbl_supplier as the supplier name in tbl_input are all blank. Any help would be gretly appreciated, I have compacted and repaired the database just in case also.