ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   ADO Weirdness: Changes dots to #'s in FieldNames (https://www.excelbanter.com/excel-programming/328699-ado-weirdness-changes-dots-s-fieldnames.html)

[email protected]

ADO Weirdness: Changes dots to #'s in FieldNames
 
All -

In inporting to Excel via ADO, I found fieldnames formatted as emails
have their dots (.'s) changed to pound signs (#'s). I verified the
fieldname correct as entered in the closed workbook. The change happens
during the import.

Is this to be expected? I'm an ADO rote user for now and couldn't even
phrase the question right in 10 words or less for Google to find an
answer.

My workaround was to use J-Walk's closed workbook macro for the
fieldname and ADO for the rest.

Is there a way to do this in ADO without further hassle? Or is this
just the way it is?

Thanks in advance.

....best, Hash

gocush[_29_]

ADO Weirdness: Changes dots to #'s in FieldNames
 
One workaround would be to use the REPLACE function on the header row in your
code immediately after you execute the sql statement. (Replace all #s with
dots) in the header row.

" wrote:

All -

In inporting to Excel via ADO, I found fieldnames formatted as emails
have their dots (.'s) changed to pound signs (#'s). I verified the
fieldname correct as entered in the closed workbook. The change happens
during the import.

Is this to be expected? I'm an ADO rote user for now and couldn't even
phrase the question right in 10 words or less for Google to find an
answer.

My workaround was to use J-Walk's closed workbook macro for the
fieldname and ADO for the rest.

Is there a way to do this in ADO without further hassle? Or is this
just the way it is?

Thanks in advance.

....best, Hash



All times are GMT +1. The time now is 07:26 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com