ADO Precision Property

Home | About me | EXCEL VB Programming (XL97-2003) | ACCESS Programming | EXCEL VB.Net Programming | EXCEL Spreadsheet Functions Material Management  |  Guestbook
 

ADO Precision Property

The Precision property sets or returns a byte value that is the maximum number of digits allowed when representing numeric values in a Parameter or Field object.

Object Description of the Precision Property
Field The Precision property is normally read-only on a Field object, but for new Field objects that have been added to the Fields collection of a Record, it is read/write after the Value property for the Field has been specified and the provider has successfully added the new Field by calling the Update method of the Fields collection
Parameter The Precision property has read/write permissions on a Parameter object

Syntax

objectname.Precision

Example

set conn=New ADODB.Connection
conn.Provider="Microsoft.Jet.OLEDB.4.0"
conn.Open "F:\MaterialMaster\Material_Master.mdb"
set rs = New ADODB.Recordset
rs.Open "SELECT * FROM tblAMSEA", conn
debug.print(rs.Fields(0).Precision)
rs.Close
conn.close