The following is part of a local view. I'm trying to populate the Process (a description) even when there is no matching record in the process table. 20 is the length of the process field in the process table. This works, but I would like to is have the "SPACE(20)" replaced by something dynamic so that if the length of the process field changes the view doesn't have to be changed. I originally had
where the SPACE(20) is, but that caused an error (The view has changed) whenever the missing process was the first part number. I hope I have explained this well enough that you can understand my problem.
Auguy
Sylvania/Toledo Ohio
Code:
""
Code:
SELECT Shippart.shippartpk, Shippart.shipfk, Shippart.linenumber, ;
IIF(ISNULL(Process.process),SPACE(20),Process.process) AS process ;
FROM ;
DATAFILES!SHIPPART ;
LEFT OUTER JOIN datafiles!process ;
ON Shippart.processfk = Process.procpk ;
WHERE Shippart.shipfk = ( ?ViewPK );
ORDER BY Shippart.linenumber
Auguy
Sylvania/Toledo Ohio