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 29th, 2003, 07:04 AM
Deepali Deepali is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 11 Deepali User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
how to insert date value using asp in the Ms Access

hi all,
i m facing a problem while inserting a date field in the table.. my code for the same is follows
**************************************************

'''''''' Variable Declartions ofor DB connection
Dim moADOConn1 'Connection
Dim moRs1 'Recordset
Dim fetchRs2 'Recordset
Dim mstrConnString1 'Connection String
Dim ProdstrSQL1 'SQL

set moADOConn1=server.CreateObject("ADODB.Connection")
set moRs1=server.CreateObject("ADODB.Recordset")

moADOConn1.Open "DSN=cfs_site2" 'mstrConnString

HoliDt=Request.form("txtHoliDt")

ProdstrSQL1="insert into Holiday_Master values ('" & HoliDt & "')"

set moRs=moADOConn1.execute(ProdstrSQL1)


*********************************

error in the view source is



Microsoft OLE DB Provider for ODBC Drivers error '80040e07'



[Microsoft][ODBC Microsoft Access Driver] Data type mismatch in criteria expression.



/cfs-test/AdminMenu.asp, line 111

********************************
line no. 111 is
set moRs=moADOConn1.execute(ProdstrSQL1)


please help me...
Thanks in advance
Deep

Reply With Quote
  #2  
Old October 29th, 2003, 07:09 AM
gintom gintom is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Essex, UK
Posts: 164 gintom User rank is Private First Class (20 - 50 Reputation Level)gintom User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 17 h 16 m 46 sec
Reputation Power: 6
try this
(#" & HoliDt & "#)"

this link will explain what i have done and what the error means that you received.
http://www.adopenstatic.com/faq/80040e07.asp

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > how to insert date value using asp in the Ms Access


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 1 hosted by Hostway
Stay green...Green IT