Visualizzazione dei risultati da 1 a 4 su 4

Discussione: Data type mismatch

  1. #1

    Data type mismatch

    premetto ke sto stanco e potrei sparare baggianate!
    allora...questo il cadice:
    codice:
    <%
    massimo = 50
    minimo = 1
    %>
    <%
    numeronews=0
    sqlStringNews = "SELECT idutente, nome, cognome, email FROM
    utenti where ( idutente > '" & minimo & "') or (idutente < '"
    & massimo & "') "
    SET RSNews = Con.Execute( sqlStringNews )
    questo l'errore:
    Microsoft JET Database Engine error '80040e07'
    Data type mismatch in criteria expression.

    :master: illuminatemi per favore!

  2. #2
    Moderatore di ASP e MS Server L'avatar di Roby_72
    Registrato dal
    Aug 2001
    Messaggi
    19,559
    Presumibilmente "idutente" è un campo numerico, quindi:
    codice:
    <%
    massimo = 50
    minimo = 1
    numeronews=0
    sqlStringNews = "SELECT idutente, nome, cognome, email FROM
    utenti where idutente > " & minimo & " or idutente < "
    & massimo
    SET RSNews = Con.Execute( sqlStringNews )
    %>
    Roby

  3. #3

    aah la stanchezza!

    Roby_72, fammi un caffè va' !

    GRAZIE! :rollo:

  4. #4
    Moderatore di ASP e MS Server L'avatar di Roby_72
    Registrato dal
    Aug 2001
    Messaggi
    19,559

    Re: aah la stanchezza!

    Originariamente inviato da beppenet
    Roby_72, fammi un caffè va' !

    GRAZIE! :rollo:
    Pure...

    Roby

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.