Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm using an adodb.recordset to query and obtain the contents of an Excel
file in ASP with VBScript. I'm having a problem when there are numeric entries mixed with alpha & numeric entries within the same column. The query I use seems to pick one of the two types and return NULL for any of the other type. Is there a way to specify that the columns will all be of a specific type? I've tried to set the format in the Excel file to all General or all Text but that doesn't seem to help. Any ideas would help, thanks. Here's some code of what i'm doing basically: .... Set XLconn = CreateObject("ADODB.Connection") 'Excel connection object XLconn.ConnectionString = connectstr XLconn.Open Set XLrs = CreateObject("ADODB.Recordset") 'create the record set object XLrs.cursortype = 3 XLrs.open "Select * From [sheet1$]", XLconn .... Thanks, Nate |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
access database (adodb)from excel vba | Excel Worksheet Functions | |||
Virus - importing excel via adodb connection | Excel Programming | |||
Retreiving data from Excel spreadsheet through ADODB | Excel Programming | |||
Export from Excel to Access ADODB | Excel Programming | |||
ADODB Recordset | Excel Programming |