Visualizzazione dei risultati da 1 a 6 su 6

Discussione: query con date

  1. #1

    query con date

    Ciao a tutti
    stò impazzendo con questa query

    "SELECT * FROM agenda WHERE Dateint>#"& (FormatDateTime(Now(),2) & " " ) &"#"

    perchè non funziona?

    mi restituisce tutte le date anche antecedenti ad oggi.

    Ciao e grazie

  2. #2
    dimenticavo. l'output sql è:

    SELECT * FROM agenda WHERE Dateint>#05/08/2009 #

  3. #3
    05/08 è l'otto di maggio.... devi scrivere 08/05 (l'animale vuole MM/GG/AAAA)


  4. #4
    oppure fa' fare tutto il lavoro ad access

    SELECT * FROM agenda WHERE Dateint>Date()


  5. #5
    ho provato così

    "SELECT * FROM agenda WHERE Dateint>"& (formatDateTime(now(), vbShortDate)) &" ORDER BY Dateint DESC"

    ma niente. Mi fà comparire :

    15/08/2009 17.00 Giovanni test di prova
    10/08/2009 17.00 Giovanni test di prova
    26/06/2009 17.00 Giovanni test di prova

    26/06 non dovrebbe comparire

    l'output della select è:

    SELECT * FROM agenda WHERE Dateint>05/08/2009 ORDER BY Dateint DESC

  6. #6
    ok è andata come avevi suggerito tu!
    grazie Optime!

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.