Visualizzazione dei risultati da 1 a 4 su 4
  1. #1
    Utente di HTML.it
    Registrato dal
    Jul 2003
    Messaggi
    583

    Data type mismatch in criteria expression

    vi mostro il codice



    Function GetLastFoto(ByVal sCodiceimmobile)
    Dim oCon
    Dim oRS

    Set oCon = Server.CreateObject("ADODB.Connection")
    Set oRS = Server.CreateObject("ADODB.Recordset")

    oCon.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("../public/databaseimm.mdb") & ";Mode=ReadWrite"
    Set oRS = oCon.Execute("select top 1 Indice from fotoimmobili2 where CodiceImmobile=" & sCodiceimmobile & " and Pubblica = '-1' order by [FotoImmobiliID] desc")
    If Not oRS.Eof Then
    GetLastFoto = oRS("foto")
    Else
    GetLastFoto = ""
    End If

    oRS.Close
    oCon.Close

    Set oRS = Nothing
    Set oCon = Nothing

    End Function

    %>


    errore


    Microsoft JET Database Engine error '80040e07'

    Data type mismatch in criteria expression.

    /ddd324/pubblicita_risultato.asp, line 412




    fatemi sapere

  2. #2
    ma Pubblica è numerico?
    IP-PBX management: http://www.easypbx.it

    Old account: 2126 messages
    Oldest account: 3559 messages

  3. #3
    Utente di HTML.it
    Registrato dal
    Jul 2003
    Messaggi
    583
    PUBBLICA e' un campo si/no

  4. #4
    Originariamente inviato da forte78
    PUBBLICA e' un campo si/no
    e non penso allora che tu debba usare -1.. magari true o false? non so come funzioni quel campo l'ho sempre odiato e in genere uso un piu standard intero a 0 o 1
    IP-PBX management: http://www.easypbx.it

    Old account: 2126 messages
    Oldest account: 3559 messages

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.