Ragazzi prendo il valore di una somma da una query
SELECT numero_mad, DocEntry, LineNum, sum(qta_mov) AS somma FROM giornale WHERE DocEntry IS NOT NULL and LineNum IS NOT NULL and DetLine IS NOT NULL and tipo_mad = 1 and numero_mad = 2 Group By numero_mad, DocEntry, LineNum, tipo_mad
dim calcolo_q
If isnull((calcolo.Fields.Item("somma").Value)) Then
calcolo_q = (calcolo.Fields.Item("somma").Value)
else
calcolo_q = 1
End If
questo dovrebbe essere il controllo sul campo che se è nullo dovrebbe mettere la variabile a 0.
ma capita questo errore...
Tipo di errore:
ADODB.Field (0x800A0BCD)
Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.
/conagra/main/stampe/stampa_ritiratofatturato_out.asp, line 111
cosa puo essere?
grazie

Rispondi quotando