SQL date comparison

Results 1 to 2 of 2

Thread: SQL date comparison

  1. #1
    est Guest

    Default SQL date comparison

    How come the Date_Due like #"&DueBy&"# doesnt work?<BR>(The less than part does.)<BR>sql_select_rebates="SELECT * FROM Store_Rebate Where Date_Due like #"&DueBy&"# or Date_Due &#060; #"&DueBy&"# and Store_id="&Store_id

  2. #2
    Join Date
    Dec 1969

    Default RE: SQL date comparison

    LIKE is used in string comparisons, it looks to me like the date_due field is a date. Try using = Instead.<BR><BR>HTH<BR><BR>Jerry

Posting Permissions

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