Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default Some help pls

    Hi all


    this is my code iam using to display the RS of my table by specific date and
    time :

    "SELECT * FROM Students WHERE ex_date >= Date() and ex_time >= Time()

    this works but only SOMETIMES so iam stuck and got no idea whats the problem
    cause it doesnt give me any errors it just sorts or DOESNT sort information
    in the db so its really strange it does display the info sometimes and
    sometimes doesnt display ..
    in my access DB iam using general date and general time format also on DW MX
    2004 i have done it like general date and general time ..
    So can anyone give me any idea why this could be happening or any reason or
    at least can u redirect me to sort my info from DB to display by specific
    date and time i work with ASP..

    Kind Rgds MeTin


    MeTin Guest

  2. #2

    Default Re: Some help pls

    What's your DB ? What's the format of the date/time values you have in
    your SELECT statement ? have you made a Response.Write of the SELECT
    statement to see what you send as a SQL statement ?

    And if you want sorting, you have to add "ORDER BY ex_date, ex_time",
    otherwise your RS might be all jumbled up, depending on what it finds in
    the database.

    Why have you 2 separate attributes for date and time ? If you use
    genaral date, if I am not mistaken, the time is also in there, so why
    split the two ?

    Regards
    Bernard

    MeTin wrote:
    > Hi all
    >
    >
    > this is my code iam using to display the RS of my table by specific date and
    > time :
    >
    > "SELECT * FROM Students WHERE ex_date >= Date() and ex_time >= Time()
    >
    > this works but only SOMETIMES so iam stuck and got no idea whats the problem
    > cause it doesnt give me any errors it just sorts or DOESNT sort information
    > in the db so its really strange it does display the info sometimes and
    > sometimes doesnt display ..
    > in my access DB iam using general date and general time format also on DW MX
    > 2004 i have done it like general date and general time ..
    > So can anyone give me any idea why this could be happening or any reason or
    > at least can u redirect me to sort my info from DB to display by specific
    > date and time i work with ASP..
    >
    > Kind Rgds MeTin
    >
    >
    bthouin Guest

  3. #3

    Default Re: Some help pls

    My DB is acces2000 the values for date and time are general date and general
    time and My SELECT statment is * this ..

    Regards MeTin

    "bthouin" <bernard_thouin@bluewin.ch> wrote in message
    news:d1v28c$alp$1@forums.macromedia.com...
    > What's your DB ? What's the format of the date/time values you have in
    > your SELECT statement ? have you made a Response.Write of the SELECT
    > statement to see what you send as a SQL statement ?
    >
    > And if you want sorting, you have to add "ORDER BY ex_date, ex_time",
    > otherwise your RS might be all jumbled up, depending on what it finds in
    > the database.
    >
    > Why have you 2 separate attributes for date and time ? If you use genaral
    > date, if I am not mistaken, the time is also in there, so why split the
    > two ?
    >
    > Regards
    > Bernard
    >
    > MeTin wrote:
    >> Hi all
    >>
    >>
    >> this is my code iam using to display the RS of my table by specific date
    >> and time :
    >>
    >> "SELECT * FROM Students WHERE ex_date >= Date() and ex_time >= Time()
    >>
    >> this works but only SOMETIMES so iam stuck and got no idea whats the
    >> problem cause it doesnt give me any errors it just sorts or DOESNT sort
    >> information in the db so its really strange it does display the info
    >> sometimes and sometimes doesnt display ..
    >> in my access DB iam using general date and general time format also on DW
    >> MX 2004 i have done it like general date and general time ..
    >> So can anyone give me any idea why this could be happening or any reason
    >> or at least can u redirect me to sort my info from DB to display by
    >> specific date and time i work with ASP..
    >>
    >> Kind Rgds MeTin

    MeTin Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139