M
Martin Newman
I have a fairly complex export routine that outputs data from access (an adp
actually) to a
Excel spreadsheet (v8 but actually deployed to and works happily with
Excel 2003). This is done in code rather than as an export, it is quite
a complex export and can't be done as a "straight" export, I don't think
(OK might be possible with a very complicated query and/or temporary
tables).
Anyway, it is a two part process in the first part my program creates the
field headers (i.e. row 1, a set of field names, obviously strings) and in
the second it works its way through a recordset extracting data items,
manipulating them and then writing what is required to the excel sheet.
And it works jolly well.
Except that any data that is "obviously" numeric is shoved out as strings
e.g 24 is output as '24, presumably because the oledb provider sees the
row headers (field names) as being strings and says the whole column must
be strings. This is more of an annoyance than anything else, but it is a
serious annoyance and so is there a way round this?
M
actually) to a
Excel spreadsheet (v8 but actually deployed to and works happily with
Excel 2003). This is done in code rather than as an export, it is quite
a complex export and can't be done as a "straight" export, I don't think
(OK might be possible with a very complicated query and/or temporary
tables).
Anyway, it is a two part process in the first part my program creates the
field headers (i.e. row 1, a set of field names, obviously strings) and in
the second it works its way through a recordset extracting data items,
manipulating them and then writing what is required to the excel sheet.
And it works jolly well.
Except that any data that is "obviously" numeric is shoved out as strings
e.g 24 is output as '24, presumably because the oledb provider sees the
row headers (field names) as being strings and says the whole column must
be strings. This is more of an annoyance than anything else, but it is a
serious annoyance and so is there a way round this?
M