Past Dates still showing

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

  1. #1

    Default Past Dates still showing

    I have a calendar page which displays only current dates, no past dates and
    contains a search field where people can search for any field in the database.
    Wile the calendar doesn't display any past dates, the search result page does.
    I need to get rid of this but when I use the same code piece ('Date_S >=
    Date()') I used for the calendar page it doesn't work. The page seems to
    completely ignore the date comparison piece of code although it works just fine
    in the calendar page. What am I doing wrong?

    Recordset1.Source = "SELECT IdMeeting, Date_S, EventName, Location,
    ProjectLead, Status, TypeOfMeeting, MarketingLead, Industry, ADDStaff FROM
    Meeting
    WHERE Industry LIKE '%" + Replace(Recordset1__MMColParam, "'", "''") + "%'
    OR EventName LIKE '%" + Replace(Recordset1__MMColParam, "'", "''") + "%'
    OR Location LIKE '%" + Replace(Recordset1__MMColParam, "'", "''") + "%'
    OR ProjectLead LIKE '%" + Replace(Recordset1__MMColParam, "'", "''") + "%'
    OR Status LIKE '%" + Replace(Recordset1__MMColParam, "'", "''") + "%'
    OR TypeOfMeeting LIKE '%" + Replace(Recordset1__MMColParam, "'", "''") + "%'
    OR MarketingLead LIKE '%" + Replace(Recordset1__MMColParam, "'", "''") + "%'
    OR TypeOfMeeting LIKE '%" + Replace(Recordset1__MMColParam, "'", "''") + "%'
    OR ADDStaff LIKE '%" + Replace(Recordset1__MMColParam, "'", "''") + "%'
    AND Date_S >= Date()
    ORDER BY Date_S ASC"

    illufox Guest

  2. Similar Questions and Discussions

    1. How to prevent past dates from showing
      I had the same question and have tried the above. The test works fine, but it shows all the dates incl. the past. How do I define the current date...
    2. Past PDF files within filemaker
      I used to get client leads sent to me in e-mail format which I would cut and paste into a field that would keep the original e-mail. I am now...
    3. [PHP] Need help - past deadline
      Jay Fitzgerald <mailto:jayfitz@bayou.com> on Tuesday, August 26, 2003 10:40 AM said: ...
    4. need help - past deadline
      can someone please look at my code below and tell me why it is only working half-way? It is only displaying radio buttons and seats for numbers 71,...
    5. please help past deadline
      can someone please look at my code below and tell me why it is only working half-way? It is only displaying radio buttons and seats for numbers 71,...
  3. #2

    Default Re: Past Dates still showing

    You ought to group the OR operators. eg

    where (a=1 or b=2) and d>=date()

    --
    Jules
    [url]http://www.charon.co.uk/charoncart[/url]
    Charon Cart 3
    Shopping Cart Extension for Dreamweaver MX/MX 2004



    Julian Roberts Guest

  4. #3

    Default Re: Past Dates still showing

    Wow, this works! ...so simple but so effective!

    Thanks a bunch!!! :)
    illufox 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