Database Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesDatabase Help

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 Codewalkers Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old May 9th, 2003, 05:55 PM
Si 2 Si Si 2 Si is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 1 Si 2 Si User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Whats wrong with this block of code?

Hey, one of my clients can't retrieve an online application that we made for them, the get an error that reads as follow when they try and view it:
Quote:
Microsoft VBScript runtime error '800a000d'
Type mismatch: 'FormatNumber'
/maint/apps/application.asp, line 232


Here is the block of code with line 232 in it, with line 232 being the line that says " Response.Write "<tr>" & vbcrlf & _ "

Quote:
sql = "SELECT aptName, aptContact, aptPhone, aptAddy, stateAbbrev, aptCity, " & _
"aptNum, aptRent, aptMoveIn, applicationType, placePhNum, placePhOther, aptZip FROM applicantNewApt " & _
"LEFT JOIN states ON stateID = aptState " & _
"LEFT JOIN applicant ON applicant.applicantID = applicantNewApt.applicantID " & _
"LEFT JOIN applicantPlaceInfo ON applicantPlaceInfo.applicantID = applicantNewApt.applicantID " & _
"WHERE applicantNewApt.applicantID = " & applicantID & " AND presentPlace = 1"
rs.Open sql
if(rs.RecordCount > 0) Then
Response.Write "<tr>" & vbcrlf & _
"<td>" & vbcrlf & _
"<table cellpadding='0' cellspacing='0 border='0'>" & vbcrlf & _
"<tr>" & vbcrlf & _
"<td class='mainBoldText'>Member Name:</td>" & vbcrlf & _
"<td width='5' class='mainText'>&nbsp;</td>" & vbcrlf & _
"<td class='mainText'>" & _
stripQuote(printMemberName(rs.Fields("aptName"), rs.Fields("aptContact"), rs.Fields("aptPhone"))) & _
"</td>" & vbcrlf & _
"</tr>" & vbcrlf & _
"</table>" & Vbcrlf & _
"</td>" & vbcrlf & _
"</tr>" & vbcrlf & _



My developer is unreachable right now and I cant code worth crap, but does anyone see anything wrong with this? Something that I can change real quick? THANK YOU

Reply With Quote
  #2  
Old May 9th, 2003, 08:56 PM
brut brut is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 367 brut User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: Whats wrong with this block of code?

This is probably more of an ASP question, but oh well. Are you calling th 'FormatNumber' function somewhere in this script? I see that it is not in this chunk, but that error seems to be indicative of trying to format a string or null value. I would search your code for instances of 'FormatNumber', and ensure the correct arguments are being passed to it.
Hope that's some help. I don't really know much VB/ASP.

Reply With Quote
  #3  
Old May 16th, 2003, 07:15 PM
Xmevs Xmevs is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Mosjøen, Nordland, Norway
Posts: 27 Xmevs User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: Whats wrong with this block of code?

The first post is the reason why PHP rocks.

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesDatabase Help > Whats wrong with this block of code?


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 2 hosted by Hostway