473,396 Members | 2,002 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Type mismatch: 'FormatDateTime'

syedshaffee
hey people ,

i'm stuck on this for a day or two this is my code . it is giving me Error Type:
Microsoft VBScript runtime (0x800A000D)
Type mismatch: 'FormatDateTime'
please help on this

Expand|Select|Wrap|Line Numbers
  1. dim i
  2. dim checkboxValue
  3. dim TextBoxValue
  4.  
  5. dim Count
  6. dim Count1
  7. dim postion
  8. dim postion1
  9. position=0
  10. postion1=0
  11. i=0
  12. Checkbox1= Request.Form("same")
  13. Comments=Request.Form("Comments")
  14. strDate=Request.Form("Date")
  15. a=Split(Comments ,",")
  16. c=Split(strDate,",")
  17. b=Split(Checkbox1,",") 
  18.  
  19. TextBoxValue=UBound(a)
  20. checkboxValue=UBound(b)
  21. for i=0 to  checkboxValue-1 step 1
  22. if b(i)<>"" then
  23. objRIMSConn.Execute "Insert into Eot_returned (Contract_no,Asset_id,Date_to_be_excepted,Comments) values ('" + Session("Contract_no") + "'," + b(i) + ",'" + FormatDateTime(c(i))+ "','"+ a(i) +"');"
  24. else
  25. exit for
  26. end if
  27. next
  28.  
  29.  
Feb 10 '12 #1
1 4387
Rabbit
12,516 Expert Mod 8TB
You should double check what formatdatetime is returning against the data type in your table.
Feb 10 '12 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: C.L. K3endricks | last post by:
Does anyone know how we can look up the SMCODE? I am receiving -28 SMCODE in an attempt to view connections via the Control Center. DBA4730E Performance monitoring encountered a problem while...
1
by: Angus Comber | last post by:
Hello I have a function which I have defined in a .h file called LogError. I use a sort of global .h file which is included in all cpp files - StdAfx.h - this file #include's my .h file with...
1
by: Gaffar | last post by:
Hello I am Getting the following error: please resolve this. Thnaks in advance Regards Gaffar. Server Error in '/AdHoc' Application. ...
0
by: Mike Eaton | last post by:
Hi all, I'm getting an error when I attempt to run the Dns.Resolve(hostName) method: No more results can be returned by WSALookupServiceNext I am able to ping the hostname I'm attempting...
1
by: Dean R. Henderson | last post by:
I added a new ASP.NET page to an existing project and I get the following error when trying to display the page: Parser Error Message: Could not load type '<ASP.NET Project Name>.<Page Name>'. ...
1
by: =?Utf-8?B?UGllcnJl?= | last post by:
Hello, I have an simle application that uses a referenced library of my own. It's been a year now that I have no problems until a few days. Here is the details of my problem: The library...
0
by: aWiproUser | last post by:
I am upgrading my project from VC 6 to VC++.NET i am getting c2872 error. Could help me regarding this.
1
by: psantosh12 | last post by:
Hello Frnds Please need help to resolve error.......... it is very very urgent........ The error is Runtime Error Description: An application error occurred on the server. The current custom...
2
by: Ushach | last post by:
hi all, how to resolve error " STATUS_INVALID_USER_BUFFER (c00000e8)"? thnx in advance
1
by: lulu ahu | last post by:
Hi friends I m doing sql server authentication. I am creating new login name and password. I got an error Cannot connect to (SERVER NAME) i. e name\sqlexpress
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.