•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Visual Basic 4 / 5 / 6 section within the Software Development category of DaniWeb, a massive community of 456,233 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,767 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums
Views: 1611 | Replies: 1
![]() |
•
•
Join Date: Oct 2007
Posts: 10
Reputation:
Rep Power: 2
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
![]() |
•
•
•
•
•
•
•
•
DaniWeb Visual Basic 4 / 5 / 6 Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
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.


Linear Mode