J
J medina
I have an ASP Script that imports an Excel Page to a HTML page. The
problem I have that it displays all cells that have only numbers in it
but not for numbers that precedes a letter (i.e. 12345 is displayed,
but M12345 is not)
This is some of the code:
oConn.Open "testXLS"
'Where testXLS is the ODBC Excel DSN
'Selects the records from the Excel spreadsheet
strCmd = "SELECT * from [Dta$]"
'where Dta is the worksheet name
Set oRS = Server.CreateObject("ADODB.Recordset")
'It opens the recordset
oRS.Open strCmd, oConn
Do While not oRS.EOF
Response.Write oRS.Fields.Item(0).Value
Response.Write oRS.Fields.Item(1).Value
oRS.MoveNext
Loop
oRS.Close
Thanks for your help...
problem I have that it displays all cells that have only numbers in it
but not for numbers that precedes a letter (i.e. 12345 is displayed,
but M12345 is not)
This is some of the code:
oConn.Open "testXLS"
'Where testXLS is the ODBC Excel DSN
'Selects the records from the Excel spreadsheet
strCmd = "SELECT * from [Dta$]"
'where Dta is the worksheet name
Set oRS = Server.CreateObject("ADODB.Recordset")
'It opens the recordset
oRS.Open strCmd, oConn
Do While not oRS.EOF
Response.Write oRS.Fields.Item(0).Value
Response.Write oRS.Fields.Item(1).Value
oRS.MoveNext
Loop
oRS.Close
Thanks for your help...