salve a tutti
Ho un problema con la seguente query :
codice:
Public Sub query_inserisci_allaccio(tipo As String, giorni As Integer, giornirim As Integer, attacco As Date, stacco As Date, piazzola As Integer, compreso As Boolean)
MsgBox compreso
rs1.Open "insert into corrente (tipo,giorni,giornirim,attacco,stacco,piazzola,compreso) values ('" & tipo & "', '" & giorni & "', '" & giornirim & "', '" & CDate(attacco) & "', '" & CDate(stacco) & "', '" & piazzola & "', '" & compreso & ")", cn, adOpenStatic, adLockOptimistic, adCmdText
End Sub
Mi funziona solo se non metto l'ultimo campo "compreso" che è di tipo boolean, su access l'ho dichiarato come booleano,e pure il valore che passo alla query lo è....pero' mi da errore dicendom che sto provando ad inserire un tipo diverso dal valore che si aspetta
...ma perchè?