Compare Page Revisions
« Older Revision - Back to Page History - Newer Revision »
HasData
SELECT OrderId ,ShipDate ,SoldToId ,BillToId ...FROM OrderHeaderWHERE 1=1 AND OrderId = @OrderId
with MyData as ( SELECT OrderId ,HasData = 1 ,ShipDate ,SoldToId ,BillToId ... FROM OrderHeader WHERE 1=1 AND OrderId = @OrderId ) SELECT * FROM MyData UNION SELECT OrderId = '' ,HasData = 0 ,ShipDate = getdate() ,SoldToId = 0 ,BillToId = 0 ... WHERE NOT EXISTS (SELECT 2 FROM MyData)
Report Parameters Dialog
=Parameters!ParameterName.Value
=Code.MyFunction(Parameters)
Parameters
p("paramName").Value
p
Private Shared Function MyFunction(ByVal p As Parameters, ByVal fieldName As String) As String ... Dim s As String = p(fieldName).Value ...
ScrewTurn Wiki version 3.0.1.400. Some of the icons created by FamFamFam. Except where noted, all contents Copyright © 1999-2024, Patrick Jasinski.