|
I did not notice that he had the adp file in the subselect. but to
expand on what you said.
Update adp/locnmstrpf a
Set a.printer =
(select b.printer from tomh/locnmstrpf b
Where a.locn = b.locn and b.printer <> ' '
)
WHERE a.printer = ' '
I have two files: TOMH/LOCNMSTRPF, ADP/LOCNMSTRPF
- both the same layout and field names (the TOMH
file is a backup of the ADP file). Key field for
each is called LOCN. For all records in ADP/LOCNMSTRPF,
I want to update one field ("printer") with data
from the corresponding record/field in TOMH/LOCNMSTRPF.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.