Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v7.1
  Buy Now
  HXTT Cobol v5.0
  HXTT DBF v7.1
  HXTT Excel v6.1
  HXTT Json v1.0
  HXTT Paradox v7.1
  HXTT PDF v2.0
  HXTT Text(CSV) v7.1
  HXTT Word v1.1
  HXTT XML v4.0
Offshore Outsourcing
Free Resources
  Firewall Tunneling
  Search Indexing Robot
  Conditional Compilation
  Password Recovery for MS Access
  Password Recovery for Corel Paradox
  Checksum Tool for MD5
  Character Set Converter
  Pyramid - Poker of ZYH
Heng Xing Tian Tai Lab of Xi'an City (abbr, HXTT)

Access scale/preceision issue
Andrei Postolache
2006-05-12 05:20:57

Create a new Table in microsoft access under Design View . Create a column with Data type as "Number". For this particular column enter the Field Properties under the General tab of it as :

Field Size : Decimal (Select using drop down).
Precision : 18.
Scale : 10.

Save the table with some name. Enter a record with value as "123.45".

I've have attached a sample program which tries to get the value of the record from the table with a select query.
When the scale is 10 the value returned is 874.7111963759, but when the scale is 11 the value returned is 10145.15958199481.This might help.

The hxtt version is 1.1.032 on May 08, 2006.

Thx in advance,

import java.sql.*;

public class TestClass {
public static void main(String[] args) throws Exception{
String connectionURL = "jdbc:access:/" +


String tableName = "Table7";

String sqlQuery = "select numcol from " + tableName;

ResultSet resultSet = DriverManager.getConnection(connectionURL).createStatement().executeQuery(sqlQuery);
while( {
System.out.println("Value : " + resultSet.getString(1));

Re:Access scale/preceision issue
HXTT Support
2006-05-12 08:11:22
Supported now. Please download the latest v1.1.035 package. Thanks for your response.

Search Key   Search by Last 50 Questions


Copyright © 2003-2019 Heng Xing Tian Tai Lab of Xi'an City. | All Rights Reserved. | Privacy | Legal | Refund | Sitemap