Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v6.0
  Buy Now
  HXTT Cobol v3.0
  HXTT DBF v6.0
  HXTT Excel v5.0
  HXTT Paradox v6.0
  HXTT Text(CSV) v6.0
  HXTT XML v2.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 Ltd. of Beijing City (abbr, HXTT)

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

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.0
Supported now. Please download the latest v1.1.035 package. Thanks for your response.

Search Key   Search by Last 50 Questions


Copyright © 1999-2017 Heng Xing Tian Tai Ltd. of Beijing City. | All Rights Reserved. | Privacy | Legal | Sitemap