Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old May 25th, 2005, 11:08 PM
Authorized User
 
Join Date: Sep 2003
Location: Melbourne, Victoria, Australia.
Posts: 81
Thanks: 0
Thanked 0 Times in 0 Posts
Default Dumb date to record question

When updating a record on the web I want to automatically put a current date into a record field to give me a last update record

I have been trying but all I get is a "/" which gives me aSyntax error in UPDATE statement.

If I remove the date part it all works fine

I have tried both a date and a text data types but it make no differance

like :-
<input type="hidden" name="date_mod" value="<%=rs("date_mod")%>" />

in a form, followed by

date_mod = DateValue(date)

Then in my update

   SQLstmt = SQLstmt & "date_mod='" & TRIM(Request.Form("date_mod")) & "', "

the result on a response.write for the update is

date_mod=', /',

I am obviously missing something

Please Help

Topshed

Reply With Quote
  #2 (permalink)  
Old May 25th, 2005, 11:18 PM
Authorized User
 
Join Date: Sep 2003
Location: Melbourne, Victoria, Australia.
Posts: 81
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Additional, I confirm what is in date_mod before the Update and I get

5/26/2005

Topshed

Reply With Quote
  #3 (permalink)  
Old June 3rd, 2005, 01:42 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Bangalore, KA, India.
Posts: 2,480
Thanks: 0
Thanked 0 Times in 0 Posts
Default

If not your code is too big, can you post that here. I dont think this info is sufficient to find what you are missing.

_________________________
- Vijay G
Strive for Perfection
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
dumb question dazmiller SQL Language 2 September 29th, 2005 09:10 AM
Dumb Question topshed CSS Cascading Style Sheets 1 April 7th, 2005 04:29 PM
Getting date from Calendar 9 into a new record johnkeeb Access VBA 4 November 8th, 2004 10:24 PM
dumb version question on ASP 1.0/1.1/2.0 badgolfer ASP.NET 1.0 and 1.1 Basics 1 October 5th, 2004 07:10 AM



All times are GMT -4. The time now is 01:57 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.