T
Tom John
Hi
I am trying to work out how to force an Access database that is
created from XSD to have a field with a set number of decimal places
(in this case 5). Now I am sure the XSD is something like this:
<xs:element name="MyFieldName">
<xs:simpleType>
<xs:restriction base="xs:decimal">
<xs:fractionDigits value="5" />
</xs:restriction>
</xs:simpleType>
</xs:element>
Unfortunately this is still creating the field as type Currency with
auto decimal places (which is 4). I have tried to reverse engineer the
XSD by creating the field correctly in Access, then building a dataset
from it and writing out the schema:
<xs:element name="MyFieldName" type="xs:decimal" minOccurs="0" />
As you can see, this is not what I was hoping to see.
Any ideas?
Cheers
Tom
I am trying to work out how to force an Access database that is
created from XSD to have a field with a set number of decimal places
(in this case 5). Now I am sure the XSD is something like this:
<xs:element name="MyFieldName">
<xs:simpleType>
<xs:restriction base="xs:decimal">
<xs:fractionDigits value="5" />
</xs:restriction>
</xs:simpleType>
</xs:element>
Unfortunately this is still creating the field as type Currency with
auto decimal places (which is 4). I have tried to reverse engineer the
XSD by creating the field correctly in Access, then building a dataset
from it and writing out the schema:
<xs:element name="MyFieldName" type="xs:decimal" minOccurs="0" />
As you can see, this is not what I was hoping to see.
Any ideas?
Cheers
Tom