Creating fields in a new table.

S

sjones

I have discovered that creating a field in VBA code as dbDecimal causes an
error but creating it as dbBigInt works fine. After appending the table the
field properties (in code) show dbDecimal.

Anyone have more information about this issue.
 
S

sjones

I am trying to create a Decimal field from code. I appears that the
CollatingOrder property is where the Precision is stored. But that is read
only from code. Any way to change that?
 
M

Marshall Barton

sjones said:
I have discovered that creating a field in VBA code as dbDecimal causes an
error but creating it as dbBigInt works fine. After appending the table the
field properties (in code) show dbDecimal.

Anyone have more information about this issue.


Yeah, I frequently stumble over these things too. Maybe
Help is kind of schizophrenic about DAO and ADO or maybe the
Help writers just couldn't keep up with the programmers :-\
 
M

Marshall Barton

TTBOMK, the Precision and Scale properties have never
incorporated into the DAO object model.

You might want to explore the ADO (and ADOX?) library, but I
can not help you with that so start a new thread if you have
further questions.
 
S

sjones

Now I have created the Precision and Scale properties which show up just fine
in table design view just as expected and when I debug.print the table
properties they are listed just as expected.

But when I change anything thing in the table design view and save the table
the Precision and Scale disappear and CollatingOrder is changed to Precision.
I still can not find out where Scale is stored. (Could it be in the
ColumnWidth?)

Marshall Barton said:
TTBOMK, the Precision and Scale properties have never
incorporated into the DAO object model.

You might want to explore the ADO (and ADOX?) library, but I
can not help you with that so start a new thread if you have
further questions.
--
Marsh
MVP [MS Access]

I am trying to create a Decimal field from code. I appears that the
CollatingOrder property is where the Precision is stored. But that is read
only from code. Any way to change that?
 
M

Marshall Barton

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top