Torna al Thread

query = " select Sum(Buoni) AS SommaDiBuoni , Sum(Bloccati) AS SommaDiBloccati, Sum(Scarto) AS SommaDiScarto From Produzione where ((Produzione.Data Between Date()-4 And Date())and (Linea = '" & CasellaCombinata1 & "'))" Set rs = CurrentDb.OpenRecordset(query) If rs.RecordCount = 0 Then Buoni.Value = " " Bloccati.Value = " " Scarto.Value = " " Else Buoni.Value = rs("SommaDiBuoni") Bloccati.Value = rs("SommaDiBloccati") Scarto = rs("SommaDiScarto") rs.Close End If
Copyright © dotNetHell.it 2002-2024
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5