Welcome to dbFreaks.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Sql/Access problem with Decimal fields

 
   Database Help (Home) -> Visual Basic -> ODBC RSS
Next:  Connection To Old Clipper DB  
Author Message
David16

External


Since: Dec 05, 2003
Posts: 1



(Msg. 1) Posted: Fri Dec 05, 2003 10:55 am
Post subject: Sql/Access problem with Decimal fields
Archived from groups: microsoft>public>vb>database>odbc (more info?)

Hi,

I'm using an SQL database and i open some tables in
MsAccess through ODBC.
I have a problem with all the tables containing decimal
fields, i cant see the ',' character in it.
If the real decimal value is '1,23' Access shows me '123'.
Also i cant change any values of the records. I have the
same problem in Visual Basic 6.0.
If i open the tables with 'MSQRY32.EXE' i have no
problems, so it cant be an ODBC driver problem.

I've noticed the problem only occurs on some pc's. I've
done an ODBC trace of 1 pc with and 1 without problems:

PC WITH ERRORS:

Test 660-5b4 EXIT SQLGetData with return code
0 (SQL_SUCCESS)
   HSTMT 081B2760
   UWORD 2
   SWORD -8
<SQL_C_WCHAR>
   PTR 0x0013CE0C [
10] "20,55"
   SQLLEN 512
   SQLLEN * 0x0013D070 (10)

PC WITHOUT ERRORS:

Test 84-404 EXIT SQLGetData with return code
0 (SQL_SUCCESS)
   HSTMT 067E1718
   UWORD 2
   SWORD 1 <SQL_C_CHAR>
   PTR 0x0013E12C [
5] "20,55"
   SQLLEN 256
   SQLLEN * 0x0013E270 (5)

Thanks in advance for any suggestions,

David.<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Sql/Access problem with Decimal fields 
Back to top
Login to vote
GVaught

External


Since: Dec 06, 2003
Posts: 9



(Msg. 2) Posted: Sun Dec 07, 2003 12:10 am
Post subject: Re: Sql/Access problem with Decimal fields [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Is your database SQL Server? Oracle? or some other database?

"David" <david.RemoveThis@staron.nl> wrote in message
news:0b7b01c3bb48$384548d0$a301280a@phx.gbl...
 > Hi,
 >
 > I'm using an SQL database and i open some tables in
 > MsAccess through ODBC.
 > I have a problem with all the tables containing decimal
 > fields, i cant see the ',' character in it.
 > If the real decimal value is '1,23' Access shows me '123'.
 > Also i cant change any values of the records. I have the
 > same problem in Visual Basic 6.0.
 > If i open the tables with 'MSQRY32.EXE' i have no
 > problems, so it cant be an ODBC driver problem.
 >
 > I've noticed the problem only occurs on some pc's. I've
 > done an ODBC trace of 1 pc with and 1 without problems:
 >
 > PC WITH ERRORS:
 >
 > Test 660-5b4 EXIT SQLGetData with return code
 > 0 (SQL_SUCCESS)
 > HSTMT 081B2760
 > UWORD 2
 > SWORD -8
 > <SQL_C_WCHAR>
 > PTR 0x0013CE0C [
 > 10] "20,55"
 > SQLLEN 512
 > SQLLEN * 0x0013D070 (10)
 >
 > PC WITHOUT ERRORS:
 >
 > Test 84-404 EXIT SQLGetData with return code
 > 0 (SQL_SUCCESS)
 > HSTMT 067E1718
 > UWORD 2
 > SWORD 1 <SQL_C_CHAR>
 > PTR 0x0013E12C [
 > 5] "20,55"
 > SQLLEN 256
 > SQLLEN * 0x0013E270 (5)
 >
 > Thanks in advance for any suggestions,
 >
 > David.
 ><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Sql/Access problem with Decimal fields 
Back to top
Login to vote
anonymous1

External


Since: Oct 22, 2003
Posts: 589



(Msg. 3) Posted: Mon Dec 08, 2003 2:45 am
Post subject: Re: Sql/Access problem with Decimal fields [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

My database is Pervasive SQL server 2000i SP3 running on
Novell Server 6.

I think the problem is located on the pc, not the server,
because some pc's work ok and some don't.
If i browse my database with the Pervasive Control Centre
i also get correct values with all pc's...

David.

 >-----Original Message-----
 >Is your database SQL Server? Oracle? or some other
database?
 >
 >"David" <david DeleteThis @staron.nl> wrote in message
 >news:0b7b01c3bb48$384548d0$a301280a@phx.gbl...
  >> Hi,
  >>
  >> I'm using an SQL database and i open some tables in
  >> MsAccess through ODBC.
  >> I have a problem with all the tables containing decimal
  >> fields, i cant see the ',' character in it.
  >> If the real decimal value is '1,23' Access shows
me '123'.
  >> Also i cant change any values of the records. I have the
  >> same problem in Visual Basic 6.0.
  >> If i open the tables with 'MSQRY32.EXE' i have no
  >> problems, so it cant be an ODBC driver problem.
  >>
  >> I've noticed the problem only occurs on some pc's. I've
  >> done an ODBC trace of 1 pc with and 1 without problems:
  >>
  >> PC WITH ERRORS:
  >>
  >> Test 660-5b4 EXIT SQLGetData with return
code
  >> 0 (SQL_SUCCESS)
  >> HSTMT 081B2760
  >> UWORD 2
  >> SWORD -8
  >> <SQL_C_WCHAR>
  >> PTR 0x0013CE0C [
  >> 10] "20,55"
  >> SQLLEN 512
  >> SQLLEN * 0x0013D070 (10)
  >>
  >> PC WITHOUT ERRORS:
  >>
  >> Test 84-404 EXIT SQLGetData with return
code
  >> 0 (SQL_SUCCESS)
  >> HSTMT 067E1718
  >> UWORD 2
  >> SWORD 1 <SQL_C_CHAR>
  >> PTR 0x0013E12C [
  >> 5] "20,55"
  >> SQLLEN 256
  >> SQLLEN * 0x0013E270 (5)
  >>
  >> Thanks in advance for any suggestions,
  >>
  >> David.
  >>
 >
 >
 >.
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Sql/Access problem with Decimal fields 
Back to top
Login to vote
Display posts from previous:   
   Database Help (Home) -> Visual Basic -> ODBC All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]