con questo codice
tenendo presente che l'sql del report èUnload repotrmemo
If Data.rsmemo.State <> 0 Then Data.rsmemo.Close
Data.rsmemo.Filter = "[Data]>='" & Text1.Value & "' And [Data]<='" & Text2.Value + 1 & "'"
Data.rsmemo.Open
If Data.rsmemo.RecordCount <> 0 Then
repotrmemo.Show
repotrmemo.Sections(1).Controls("Label1").Caption = "MEMORANDUM dal " & Text1.Value & " al " & Text2.Value
repotrmemo.Height = principale.Height - 1700
repotrmemo.Width = principale.Width - 200
repotrmemo.Top = 0
repotrmemo.Left = 0
Else
MsgBox "Tra le date specificate non è stato riscontrato nessun rapporto!"
End If
mi viene restituito un errore di E_fail....perchèSELECT data,bollaill, bollaquot, resoill, resoquot, resoextra, rifornimenti, bollaill + bollaquot AS tot1 ,resoquot + resoill AS tot2, bollaill + bollaquot - resoquot - resoill - resoextra + rifornimenti AS tot3 FROM memoria order by data![]()