有誰知道如何/如果您可以在水晶報表的選擇公式中使用MIN()?水晶報表選擇公式
林想做到這一點:
Dim sql As String = ""
Dim startDate As Date = CDate(_startDate.ToString(_dateFormat))
Dim endDate As Date = CDate(_endDate.ToString(_dateFormat))
sql = "min({" & tableName & "." & dateFieldName & "}) <= " & startDate & " AND {" & tableName & "." & dateFieldName & "} <= " & endDate & ""
Return sql