Results 1 to 2 of 2

Thread: Microsoft.Jet.OLEDB.4.0 Excel help!!!

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2005
    Posts
    2

    Microsoft.Jet.OLEDB.4.0 Excel help!!!

    This question is more to Microsoft.Jet.OLEDB provider rather than the VB itself. But since i couldnot find the right forum, I hope you still can help me.

    I am faced with the following situation:

    One person gave me this decimal number on excel spreadsheet, "2.6733". The person format the decimal to be formated using 2 digit instead. Hence outputting "2.7"
    I load the spreadsheet onto ASP VB using Microsoft.Jet.OLEDB.4.0. The output on the ASP is of course "2.7".

    I heard that Excel' internal mechanism stores data differently with its presentation. In this case, although excel display "2.7" on the spreadsheet, it retains the original value which is "2.6733".
    My problem is:

    - Is there anyway we can get the original value to be displayed on ASP using Microsoft.Jet.OLEDB.4.0.

    Thanks for your attention.

    ESUK

  2. #2
    Frenzied Member wengang's Avatar
    Join Date
    Mar 2000
    Location
    Beijing, China
    Posts
    1,604

    Re: Microsoft.Jet.OLEDB.4.0 Excel help!!!

    WHy is it rounding to one decimal?
    Have you tried using ROUND(number, decimal places)?
    it works in excel and in ASP
    Wen Gang, Programmer
    VB6, QB, HTML, ASP, VBScript, Visual C++, Java

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width