| | |
Reading excel sheet into a recordset
![]() |
•
•
Join Date: Oct 2007
Posts: 10
Reputation:
Solved Threads: 0
Hi Guys,
I need some help. My application reads an excel file and dumps it into a recordset. The problem is that if a coloumn in excel has numbers and text in it only the numbers are dumped into the recordset and not the text values. The text values are just blank
Set rsCat = New ADODB.Recordset
Set conn = New ADODB.Connection
sqlCatExcel = "select * from [All $]"
rsCat.CursorLocation = adUseClient
rsCat.Open sqlCatExcel, "DRIVER=Microsoft Excel Driver (*.xls);Extended Properties=excel 8.0;" & "DBQ=" & filename
Set DataGrid1.DataSource = rsCat
Please help
I need some help. My application reads an excel file and dumps it into a recordset. The problem is that if a coloumn in excel has numbers and text in it only the numbers are dumped into the recordset and not the text values. The text values are just blank
Set rsCat = New ADODB.Recordset
Set conn = New ADODB.Connection
sqlCatExcel = "select * from [All $]"
rsCat.CursorLocation = adUseClient
rsCat.Open sqlCatExcel, "DRIVER=Microsoft Excel Driver (*.xls);Extended Properties=excel 8.0;" & "DBQ=" & filename
Set DataGrid1.DataSource = rsCat
Please help
![]() |
Similar Threads
- Retriving data from excel sheet into an asp page (ASP)
- sorting a excel sheet using vb (Visual Basic 4 / 5 / 6)
- Exporting From Crystal reports to Excel sheet (ASP.NET)
- Open Excel Sheet in Vb.net (VB.NET)
- To Fetch EXCEL sheet values thro' ASP page. (Existing Scripts)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Windows Media Player
- Next Thread: Parallel communications with Win32 API.
Views: 3303 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for Visual Basic 4 / 5 / 6
* 6 429 access activex add application banned basic beep c++ calculator cd channel9 click client code coffeehouse college column convert copy creative database designer desktop dissertations dissertationthesis dissertationtopic edit error excel file filename filter flex form grid group hardware ide image implements inboxinvb installation installer label list listbox listview looping machine macro mail match memory messagebox microsoft number open pos prime print printer programmer prompt query random range range-objects readfile reading registration remotesqlserverdatabase report reports retrieve save score search sites sound spectateswamp sql string sum table textbox time variable vb vb6 vb6.0 vba vista visual visualbasic web window windows





