
Open Excel spreadsheet from VB 5.0
[This followup was posted to comp.lang.basic.visual.misc and a copy was
sent to the cited author.]
Quote:
> When you read a range as a table DAO uses the first row of cells in the
> range as the field names, therefore you need to put something like this to
> access the first field :
> X = rs(0).Name
I thought about this too, but there is another problem: If the first row
doesn't contain valid DAO field names it assigns his own fieldnames.
For example: If it contains a number (20095), the field name is
afterwards 'F6'.
Anyone knows how it was solved in Access? With OLE?
Zhanxs in advance.
Marcel