Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I'm having trouble with 'NULLs' reading data from Excel

Status
Not open for further replies.

Dougpeplow

Programmer
Feb 1, 2000
57
FR
I am using VB to open an excel s/sheet and read data into a recordset (myset = db.openrecordset etc....).
The data in the s/sheet is in a prescribed format, using first few columns as text, the remainder as numbers. The first 'record' can be at any row, and there is no header row.
the problem I have is that in order to capture the data I must always start to read from the first row. This may be full of NULLs and recordset that I create doesn't seem to be automatically able to detect the values , text or numeric in the subsequent, populated rows.
Is there a way of formatting the recordset to expect the right data type from Excel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top