Update my mdate

W

wildt

I'm trying to Update my mdate field (date/time) data type
i broke the mdate into date (mm/dd/yyy) with name="MYdate"
and time with name="Tdate"

<select name="Tdate" >
<option value="<%=rs("mdate")%>">
<%=FormatDateTime(RS.Fields("mdate"),"3")%>

<input type="text" name="MYdate" value="
<%=FormatDateTime(RS.Fields("mdate"),"2")%>">



SQLstmt = "UPDATE courses SET "

SQLstmt = SQLstmt & "mdate='" & TRIM(Request.Form("MYdate")) & "', "'
& " & TRIM(Request.Form("Tdate")) & "'"


the update only works for "MYdate" the "Tdate"is remains the same
it's probably has to do with the SQLstmt.
Need help.
Thanks
 
M

Manohar Kamath [MVP]

Write out the SQL statement to see what it looks like.

Response.Write SQLStmt

That way you can debug it much easily.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top