Visualizzazione dei risultati da 1 a 2 su 2
  1. #1

    statue e_fail su report

    con questo codice

    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
    tenendo presente che l'sql del report è
    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
    mi viene restituito un errore di E_fail....perchè

  2. #2
    ho scoperto scusate :gren: sommano due stringhe come se fossero numeri .... basta fare ad esempio val(resoill)+val(resoextra) e tutto funge

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.