ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 23rd, 2003, 09:44 AM
CCCMTech's Avatar
CCCMTech CCCMTech is offline
SBC Online Tech
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Somewhere between here and there
Posts: 22 CCCMTech User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Syntax error on date input

Ok I have a page for work I'm trying to make. I have an input page using html forms on an ASP page. These forms are added to my mdb using another asp page. For clarification the input page is index.asp, the sql insert script is on addcase.asp and then I can view the results on showall.asp

Anyway everything worked fine until I tried to add the date. I keep getting syntax error on line 17 and 26 of my add case page...
here's what they say..

line 17 - date = ChkString(Request.Form("date"))

line 26 - con.Execute sql_insert

As I said it worked fine until I added the date part...I tried changing date to dateentered everywhere (including my db) and it quit giving me an error but I still get an error on line 26...

my actual sql insert script is on line 21..

line 21 - sql_insert = "insert into cccmtech (dslruid, techname, wtn, modem, dateentered, probdescr) values ('" & dslruid & "', '" & techname & "', '" & wtn & "', '" & modem & "', '" & dateentered & "', '" & probdescr & "',)"



The only other thing if it's not actually in one of those is in my input..I have the form for my date input put as:

Date (Please use mm/dd/yyyy): <input name="dateentered" type=text><br>

Can someone please help me figure this out?

Thanks..

Reply With Quote
  #2  
Old October 23rd, 2003, 10:00 AM
CCCMTech's Avatar
CCCMTech CCCMTech is offline
SBC Online Tech
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Somewhere between here and there
Posts: 22 CCCMTech User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
found the problem...

Forgot to add the change in dateentered in the dim statement..

thanks all.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > Syntax error on date input


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT