PC Review


Reply
Thread Tools Rate Thread

What can cause this error

 
 
Paul M
Guest
Posts: n/a
 
      29th Apr 2008

Hi
I am querying an access database and populating text boxes from the
database but I am getting this error

Microsoft VBScript runtime error '800a000d'

Type mismatch: 'HTMLEncode'

/editDB/editdb.asp, line 168

There should be 8 fields ( text boxes) displaying but the error appears
after 4 and the 4th has <font in the text box instead of the data frpm the
recordset

What possible cause can this be



Thanks

Paul m


 
Reply With Quote
 
 
 
 
Paul M
Guest
Posts: n/a
 
      29th Apr 2008
Hi
I think it might be because the entry in the database is a null but I don't
know how to fix it.
here is the line

<input type="text" name="available" value="<%=
Server.HTMLEncode(rstDBEdit.Fields("available").Value) %>" /><br />
Any help would be much appreciated
Thanks
Paul M

"Paul M" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> Hi
> I am querying an access database and populating text boxes from the
> database but I am getting this error
>
> Microsoft VBScript runtime error '800a000d'
>
> Type mismatch: 'HTMLEncode'
>
> /editDB/editdb.asp, line 168
>
> There should be 8 fields ( text boxes) displaying but the error appears
> after 4 and the 4th has <font in the text box instead of the data frpm
> the recordset
>
> What possible cause can this be
>
>
>
> Thanks
>
> Paul m
>
>



 
Reply With Quote
 
Stefan B Rusynko
Guest
Posts: n/a
 
      30th Apr 2008
1) best to never use Nulls in any DB
2) or try
<%
IF Len(rstDBEdit.Fields("available"))>0 THEN
available = Server.HTMLEncode(rstDBEdit.Fields("available").Value)
ELSE
available =""
END IF
%>

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


"Paul M" <(E-Mail Removed)> wrote in message news:%(E-Mail Removed)...
| Hi
| I think it might be because the entry in the database is a null but I don't
| know how to fix it.
| here is the line
|
| <input type="text" name="available" value="<%=
| Server.HTMLEncode(rstDBEdit.Fields("available").Value) %>" /><br />
| Any help would be much appreciated
| Thanks
| Paul M
|
| "Paul M" <(E-Mail Removed)> wrote in message
| news:(E-Mail Removed)...
| >
| > Hi
| > I am querying an access database and populating text boxes from the
| > database but I am getting this error
| >
| > Microsoft VBScript runtime error '800a000d'
| >
| > Type mismatch: 'HTMLEncode'
| >
| > /editDB/editdb.asp, line 168
| >
| > There should be 8 fields ( text boxes) displaying but the error appears
| > after 4 and the 4th has <font in the text box instead of the data frpm
| > the recordset
| >
| > What possible cause can this be
| >
| >
| >
| > Thanks
| >
| > Paul m
| >
| >
|
|


 
Reply With Quote
 
Stefan B Rusynko
Guest
Posts: n/a
 
      30th Apr 2008
PS
Or to test for null use

<%
IF IsNull(rstDBEdit.Fields("available") OR Len(rstDBEdit.Fields("available"))<1 THEN
available =""
ELSE
available = Server.HTMLEncode(rstDBEdit.Fields("available").Value)
END IF
%>

<input type="text" name="available" value="<%= available %>" /><br />

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


"Stefan B Rusynko" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
| 1) best to never use Nulls in any DB
| 2) or try
| <%
| IF Len(rstDBEdit.Fields("available"))>0 THEN
| available = Server.HTMLEncode(rstDBEdit.Fields("available").Value)
| ELSE
| available =""
| END IF
| %>
|
| --
|
| _____________________________________________
| SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| "Warning - Using the F1 Key will not break anything!" (-;
| _____________________________________________
|
|
| "Paul M" <(E-Mail Removed)> wrote in message news:%(E-Mail Removed)...
|| Hi
|| I think it might be because the entry in the database is a null but I don't
|| know how to fix it.
|| here is the line
||
|| <input type="text" name="available" value="<%=
|| Server.HTMLEncode(rstDBEdit.Fields("available").Value) %>" /><br />
|| Any help would be much appreciated
|| Thanks
|| Paul M
||
|| "Paul M" <(E-Mail Removed)> wrote in message
|| news:(E-Mail Removed)...
|| >
|| > Hi
|| > I am querying an access database and populating text boxes from the
|| > database but I am getting this error
|| >
|| > Microsoft VBScript runtime error '800a000d'
|| >
|| > Type mismatch: 'HTMLEncode'
|| >
|| > /editDB/editdb.asp, line 168
|| >
|| > There should be 8 fields ( text boxes) displaying but the error appears
|| > after 4 and the 4th has <font in the text box instead of the data frpm
|| > the recordset
|| >
|| > What possible cause can this be
|| >
|| >
|| >
|| > Thanks
|| >
|| > Paul m
|| >
|| >
||
||
|
|


 
Reply With Quote
 
Paul M
Guest
Posts: n/a
 
      30th Apr 2008
Thanks Stefan

Paul M

"Stefan B Rusynko" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> PS
> Or to test for null use
>
> <%
> IF IsNull(rstDBEdit.Fields("available") OR
> Len(rstDBEdit.Fields("available"))<1 THEN
> available =""
> ELSE
> available = Server.HTMLEncode(rstDBEdit.Fields("available").Value)
> END IF
> %>
>
> <input type="text" name="available" value="<%= available %>" /><br />
>
> --
>
> _____________________________________________
> SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
> "Warning - Using the F1 Key will not break anything!" (-;
> _____________________________________________
>
>
> "Stefan B Rusynko" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> | 1) best to never use Nulls in any DB
> | 2) or try
> | <%
> | IF Len(rstDBEdit.Fields("available"))>0 THEN
> | available = Server.HTMLEncode(rstDBEdit.Fields("available").Value)
> | ELSE
> | available =""
> | END IF
> | %>
> |
> | --
> |
> | _____________________________________________
> | SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
> | "Warning - Using the F1 Key will not break anything!" (-;
> | _____________________________________________
> |
> |
> | "Paul M" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
> || Hi
> || I think it might be because the entry in the database is a null but I
> don't
> || know how to fix it.
> || here is the line
> ||
> || <input type="text" name="available" value="<%=
> || Server.HTMLEncode(rstDBEdit.Fields("available").Value) %>" /><br />
> || Any help would be much appreciated
> || Thanks
> || Paul M
> ||
> || "Paul M" <(E-Mail Removed)> wrote in message
> || news:(E-Mail Removed)...
> || >
> || > Hi
> || > I am querying an access database and populating text boxes from the
> || > database but I am getting this error
> || >
> || > Microsoft VBScript runtime error '800a000d'
> || >
> || > Type mismatch: 'HTMLEncode'
> || >
> || > /editDB/editdb.asp, line 168
> || >
> || > There should be 8 fields ( text boxes) displaying but the error
> appears
> || > after 4 and the 4th has <font in the text box instead of the data
> frpm
> || > the recordset
> || >
> || > What possible cause can this be
> || >
> || >
> || >
> || > Thanks
> || >
> || > Paul m
> || >
> || >
> ||
> ||
> |
> |
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Server Error: 451, Socket Error: 10053, Error Number: 0x800CCC0F =?Utf-8?B?RGFuaWVsYQ==?= Windows XP Help 3 17th Aug 2007 05:10 PM
Access error 3197 and JETCOMP.exe error "Error compacting database =?Utf-8?B?Vmlja3k=?= Microsoft Access 2 21st Jul 2007 12:29 AM
Error connecting to SQLExpress 2005 locally (error: 26 - Error Locating Server/Instance Specified) hfk0 Microsoft ASP .NET 2 27th Mar 2006 09:43 PM
3 Problems - Media Center Error, Date/Time Error, Downloading Updates Error angieangie Windows XP General 0 23rd Dec 2005 06:33 PM
A runtime error has occured. Do you want to debug? Line: 1 Error: syntax error Eric Windows XP Networking 0 24th Nov 2003 03:45 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:27 PM.