J
John T Ingato
Geeze, I wonder if that makes any sense.
I have a table with a list of 1800 stores and store information. Some of
the records have missing information. So I left joined the table on itself
with the criteria or'ed for all fields I would like to test. SQL is below.
I would like to be able to use the query result to type in the updated
information. Is this possible? Or do I need to do something else?
SELECT tblHDStoreList.StoreNumber, tblHDStoreList_1.StoreName,
tblHDStoreList_1.MKT, tblHDStoreList_1.CloseDate, tblHDStoreList_1.Address1,
tblHDStoreList_1.City, tblHDStoreList_1.State, tblHDStoreList_1.Zip,
tblHDStoreList_1.Phone
FROM tblHDStoreList LEFT JOIN tblHDStoreList AS tblHDStoreList_1 ON
tblHDStoreList.StoreNumber = tblHDStoreList_1.StoreNumber
WHERE (((tblHDStoreList_1.StoreName) Is Null)) OR (((tblHDStoreList_1.MKT)
Is Null)) OR (((tblHDStoreList_1.CloseDate) Is Null)) OR
(((tblHDStoreList_1.Address1) Is Null)) OR (((tblHDStoreList_1.City) Is
Null)) OR (((tblHDStoreList_1.State) Is Null)) OR (((tblHDStoreList_1.Zip)
Is Null)) OR (((tblHDStoreList_1.Phone) Is Null))
ORDER BY tblHDStoreList.StoreNumber;
I have a table with a list of 1800 stores and store information. Some of
the records have missing information. So I left joined the table on itself
with the criteria or'ed for all fields I would like to test. SQL is below.
I would like to be able to use the query result to type in the updated
information. Is this possible? Or do I need to do something else?
SELECT tblHDStoreList.StoreNumber, tblHDStoreList_1.StoreName,
tblHDStoreList_1.MKT, tblHDStoreList_1.CloseDate, tblHDStoreList_1.Address1,
tblHDStoreList_1.City, tblHDStoreList_1.State, tblHDStoreList_1.Zip,
tblHDStoreList_1.Phone
FROM tblHDStoreList LEFT JOIN tblHDStoreList AS tblHDStoreList_1 ON
tblHDStoreList.StoreNumber = tblHDStoreList_1.StoreNumber
WHERE (((tblHDStoreList_1.StoreName) Is Null)) OR (((tblHDStoreList_1.MKT)
Is Null)) OR (((tblHDStoreList_1.CloseDate) Is Null)) OR
(((tblHDStoreList_1.Address1) Is Null)) OR (((tblHDStoreList_1.City) Is
Null)) OR (((tblHDStoreList_1.State) Is Null)) OR (((tblHDStoreList_1.Zip)
Is Null)) OR (((tblHDStoreList_1.Phone) Is Null))
ORDER BY tblHDStoreList.StoreNumber;