Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default How can I get the record from excel whit asp?

Hello every one

I want to get the record from excel with ASP file. Who does develop it?

I use Microsoft Excel Driver (*.xls) to implement it, but I meet a
servious problem.
When the column include "8888-9999999", the program cant' get the
record. If I remove the "-" and change the column to "88889999999" , I can
display the record. Why?

connstr="Driver={Microsoft Excel Driver (*.xls)};dbq=" &
server.MapPath("data\test.xls")
set conn = server.CreateObject("adodb.connection")
set rs=server.CreateObject("adodb.recordset")
conn.Open connstr sql = "select * from [Sheet1$]"
rs.Open sql,conn
While rs.EOF=False
Response.Write rs.Fields("UserName") & " " & rs.Fields("Phone")
rs.MoveNext
Wend
rs.Close


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
background colour of sheet gone gray need to change to whit Change Background colour of worksheet Excel Worksheet Functions 1 April 22nd 10 11:08 PM
lock cell whit first value cferoiu Excel Worksheet Functions 5 May 30th 09 08:43 AM
excel remake whit shadow all the row where i am edit LuisJavier Excel Worksheet Functions 2 October 16th 06 03:40 AM
Sum of cells whit the same name Mark J Excel Worksheet Functions 2 January 23rd 06 04:55 PM
help whit hyperlink Didier Lizard Excel Programming 1 July 12th 03 01:26 PM


All times are GMT +1. The time now is 06:01 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"