Solved

Input string was not in a correct format. error

Posted on 2010-09-07
3
723 Views
Last Modified: 2013-11-25
I'm getting this error:

Exception Details: System.FormatException: Input string was not in a correct format.

 vbssript code
The source looks like this <snippet>:

Dim CourseQuery
Dim CourseQuery_numRows
CourseQuery = Server.CreateObject("ADODB.Recordset")
CourseQuery.ActiveConnection = MM_connLearnDirectDB_STRING
CourseQuery.Source = "SELECT course.course_id, " & _
"course.course_name, " & _"course.summary, " & _
"provider.provider_id," & _

Open in new window


I'm converting the page over from asp to aspx , anyone know whats causing it?
0
Comment
Question by:darren-w-
3 Comments
 
LVL 22

Expert Comment

by:Om Prakash
ID: 33618952
0
 
LVL 11

Expert Comment

by:tobzzz
ID: 33619840
Line 6 needs to break into line 7 so this:
"course.course_name, " & _"course.summary, " & _
becomes
"course.course_name, " & _
"course.summary, " & _
0
 
LVL 13

Accepted Solution

by:
darren-w- earned 0 total points
ID: 33625546
Hi,

Tobzz, the snippet was a little wrong, the syntax is correct, I will give up on converting the form over from asp to aspx for now, reverted back to the previous version.

D
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now