CFF KB - Carrz-Fox-Fire Promotions Knowledge Base
CFF KB is all about 1 thing: The Sharing of Knowledge and the Power we gain from it.Knowledge Base
- Breadrumbs:
Microsoft VBScript runtime error '800a000d'
- Article ID:
2 - Date Created
Sunday, September 26, 2010 - Last Updated
Wednesday, November 17, 2010 - This Article Has been Viewed
2296 times - Short Desc
Cannot send Time as String to a Request.Form - Details
This error is caused when you try to pass Date as a string through a Request.Form
You can use the Pound # sign before and after the date if it is a record in a table.
But, in the case of a Request.Form("Datefield") you do not have that option of the #.
The error you will get is:
Microsoft VBScript runtime error '800a000d'
Type mismatch: '[string: "10/03/2009"]'
/RTW_Form.asp, line 5 - Recreate Issue
You will pass this
<input name="FirstDateOfAbsence" type="text" value="10/01/2009" />
<input name="LastDateOfAbsence" type="text" value="10/03/2009" />
To this<%
For i = Request.Form("FirstDateOfAbsence") To Request.Form("LastDateOfAbsence")
%> - Resolve Issue
You will pass this
<input name="FirstDateOfAbsence" type="text" value="10/01/2009" />
<input name="LastDateOfAbsence" type="text" value="10/03/2009" />
To Resolve the issue. Do the following<%
For i = CDate(Request.Form("FirstDateOfAbsence")) To CDate(Request.Form("LastDateOfAbsence"))
%>
Share With Friends (Updated 6-8-2010)
Recent Articles
All Topics
- Coming Soon - Knowledge Exchange
Trending Articles
- Microsoft VBScript runtime error '800a0046' Permission denied FileSystemObject 24695
- Microsoft OLE DB Provider for SQL Server error '80040e57' String or binary data would be truncated. or The field is too small to accept the amount of data you attempted to add. Try inserting or pasting less data. 21297
- ADODB.Parameters error '800a0e7c' Parameter object is improperly defined 19544
- After Effects warning: Audio conforming failed for the following file .cfa. Perhaps due to disk space 17785
- The backup set holds a backup of a database other than the existing 16825