Hi All the first begin sql end sql works 100% of the time

-- ARRAY TEXT($InspectionIDs_atxt;0)

Begin SQL

select
[LSS_Inventory].[LSS_InventoryId_s]
from
[LSS_Inventory],
[LSS_Inspection]
where
[LSS_Inspection].[LSS_CondFoundationCurr_s] = '2'
and
[LSS_Inspection].[LSS_InventoryId_s] = [LSS_Inventory].[LSS_InventoryId_s]
into
:$InspectionIDs_atxt;





End SQL

ARRAY TEXT($INVIDs_atxt;0)
This next begin end loop crashes the server every time. Anyone have
any idea as to why

Begin SQL

select
[LSS_Inventory].[LSS_InventoryId_s]
from
[LSS_Inventory],
[LSS_Inspection]
where
[LSS_Inspection].[LSS_CondFoundationCurr_s] = '2'
and
[LSS_Inspection].[LSS_InventoryId_s] = [LSS_Inventory].[LSS_InventoryId_s]
having
[LSS_Inspection].[LSS_InspectionDate_d] =
(SELECT Max([LSS_Inspection].[LSS_InspectionDate_d])
from
[LSS_Inspection]
where
[LSS_Inspection].[LSS_InventoryId_s] = [LSS_Inventory].[LSS_InventoryId_s])
into
:$INVIDs_atxt;

End SQL
Regards

Chuck
-----------------------------------------------------------------------------------------
 Chuck Miller Voice: (617) 739-0306 Fax: (617) 232-1064
 Informed Solutions, Inc.
 Brookline, MA 02446 USA Registered 4D Developer
       Providers of 4D, Sybase & SQL Server connectivity
          http://www.informed-solutions.com
-----------------------------------------------------------------------------------------
This message and any attached documents contain information which may
be confidential, subject to privilege or exempt from disclosure under
applicable law.  These materials are intended only for the use of the
intended recipient. If you are not the intended recipient of this
transmission, you are hereby notified that any distribution,
disclosure, printing, copying, storage, modification or the taking of
any action in reliance upon this transmission is strictly prohibited.
Delivery of this message to any person other than the intended
recipient shall not compromise or waive such confidentiality,
privilege or exemption from disclosure as to this communication.
**********************************************************************
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**********************************************************************

Reply via email to