Re: Table decimal places
- From: "Hank" <hankrunner@xxxxxxx>
- Date: 20 Aug 2006 06:10:12 -0700
Doesn't the DecimalPlaces property give that?
Dim td As DAO.TableDef
Dim db As DAO.Database
Dim fd As DAO.Field
Set db = DBEngine(0)(0)
For Each td In db.TableDefs
For Each fd In td.Fields
If fd.Type = dbSingle Then
Debug.Print td.Name, fd.Name, _
fd.Properties("DecimalPlaces").Value
End If
Next fd
Next td
--
Roy-Vidar
Roy,
I tried your function and got "Property Not Found" for the
"DecimalPlaces" property. Actually it didn't recognize "Caption" or
other properties I thought should be there. I tried listing the
properties and found out that "DecimalPlaces" was number 23 but could
not get the value. I tried using fd.Properties(1) - (25) and got
values up to (8) but it would not recognize (9) and up.
As a test, I added a new table with singles in it and your
function reads it just fine. I tried to characterize the other tables
to see what the difference was but I could not find anything
significant.
Any ideas?
Hank
.
- Follow-Ups:
- Re: Table decimal places
- From: RoyVidar
- Re: Table decimal places
- References:
- Table decimal places
- From: Hank
- Re: Table decimal places
- From: RoyVidar
- Table decimal places
- Prev by Date: Re: Random failure of Access 97 Application on XP
- Next by Date: Re: Re: Buy a copy of access 2003?
- Previous by thread: Re: Table decimal places
- Next by thread: Re: Table decimal places
- Index(es):
Relevant Pages
|
Loading