Results 1 to 4 of 4
  1. #1
    gianmario is offline Novice
    Windows 10 Access 2016
    Join Date
    Feb 2017
    Location
    sassari
    Posts
    2

    formato date

    ciao sto lavorando con delle tabelle e ho alcuni problemi con le date.. mi sembra che la data venga letta come stringa e non come data


    Faccio un esempio cosi magari mi dite dove sbaglio:

    Dim rs As ADODB.Recordset
    Set rs = New ADODB.Recordset


    strsql = "select tbl_servizi.*,tbl_turni.* from tbl_turni right join tbl_servizi on tbl_turni.id_turno=tbl_servizi.[servizio effettivo] where cid=" & cid1 & _
    " and #[data]# < #" data1 & "# ORDER BY [data];"


    rs.Open strsql, CurrentProject.Connection, adOpenDynamic, adLockOptimistic
    'e data1="01/3/2017" ottengo i record con data inferiore o=a "01/02/2017" e non il record del"28/2/2017".. perchè???

    Qualcuno sa dirmi dove sbaglio?? grazie

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,518
    Can't read the question, but see if this helps:

    http://allenbrowne.com/ser-36.html#Format
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    gianmario is offline Novice
    Windows 10 Access 2016
    Join Date
    Feb 2017
    Location
    sassari
    Posts
    2
    èstato molto utile..grazie tante

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,518
    Happy to help!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 4
    Last Post: 11-20-2018, 11:57 PM
  2. Replies: 1
    Last Post: 04-29-2016, 04:03 AM
  3. Replies: 2
    Last Post: 03-09-2016, 04:15 PM
  4. Replies: 6
    Last Post: 03-02-2016, 12:58 PM
  5. Replies: 3
    Last Post: 08-21-2012, 03:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums