Access to Excel: boolean is changed to numeric -
i noticed when transfering query result access excel, whether copy/paste or using docmd.outputto
, true
/false
values become -1 or 0 in excel.
of course write vba proc fill excel wondering: there trick use make simple transfer work? in other words, value should assign query column proper true
/false
in excel ?
noticed in excel, true not equal -1. it's not matter of formatting, in access.
tried far without success:
- using ´cbool´: nice
true
/false
in access, turns in -1/0 in excel - changing
format
field property in query "true/false": same result
in query, can use expression force true/false string excel during export:
spelledboolean: format([yourbooleanfield], "true/false")
to return 0 or 1, use abs:
zerooneboolean: abs([yourbooleanfield])
Comments
Post a Comment