Oh, of course. Access *REQUIRES* that date constants be enclosed in #...#. Your code is using '...'.
Your code is also remarkably unsafe, so I hope this is for an inTRAnet site and not for some inTERnet site
where the hackers will tear you to pieces.
Anyway:
Code:
strSQL = "SELECT sellerLast, sellerFirst " _
& " FROM tblComboSelect " _
& " WHERE DateSold=#" & CDate(trim(request("DateSold"))) & "# " _
& " AND DateShippedIn=#" & CDate(trim(request("DateShippedIn"))) & "#"
Doesn't anybody in your shop have some experience with databases and/or web programming?
I feel that you are simply bumping your way along from one thing to the next with
no real sense of direction. You seem to need way more hope that we can
give you in a forum of this nature.
à à Set oRs=Server.CreateObject("adodb.recordset")
à à oRs.Open strSQL, conn
à à if not oRs.eof then %>
à <select name="dateSold">
<% Ã Ã Ã do until oRs.eof %>
<option value="<%= ors("sellerLast") %>, <%= ors("sellerFirst") %>"><%= ors("sellerLast") %>, <%= ors("sellerFirst") %></option>
<% Ã Ã oRs.MoveNext
à loop %>
à </select>
<% else %>
à <i>No records found for that car</i>
<% end if
à à à else
à à 'user has not selected a car therefore do not show date select box
à à response.write "<i>No car selected yet</i>"
à à à end if %>
I do not know why this code above generate errors.
Can you please help?
Thanks very much.
Edited by - jennypretty on 12/02/2008 5:58:35 PM
Go to Top of Page
Topic Next Topic
New Topic Reply to Topic Subscribe to this topic Subscribe to this topic Send Topic to a Friend Printer Friendly
Jump To:
Spell Checker Quick Reply
Message:
* HTML is OFF
* Forum Code is ON
Include Signature