ADO NumericScale Property

Definition and Usage

The NumericScale property sets or returns a Byte value indicating the number of decimal places to which the numeric value of the Field or Parameter object should be precise.

Object Description of the NumericScale property
Field

For the Field object, NumericScale is typically read-only. However, for a new Field object that has been appended to the Fields collection of a Record, NumericScale is read/write only when the Field's Value property has been specified and the data provider has successfully added the new Field by calling the Update method of the Fields collection.

Parameter For the Parameter object, the NumericScale property has read/write access.

Syntax

object.NumericScale

Example

<%
set conn=Server.CreateObject("ADODB.Connection")
conn.Provider="Microsoft.Jet.OLEDB.4.0"
conn.Open "c:/webdata/northwind.mdb"
set rs = Server.CreateObject("ADODB.Recordset")
rs.open "Select * from orders", conn
response.write(rs.Fields(0).NumericScale)
rs.Close
conn.close
%>