+ Reply to Thread
Results 1 to 2 of 2

Please Help Me !!! Excel + VB 6 + MySQL

  1. #1
    Registered User
    Join Date
    02-04-2007
    Posts
    1

    Please Help Me !!! Excel + VB 6 + MySQL

    Hi Everyone !!

    I have the following problem:

    I made an application using VB 6 + MySQL, working fine, however, when I try to export data to an Excel 2003 Worksheet, numeric values tend to "go bananas". Example:

    I have TWO equal values (75) in the same row of data. When exporting to Excel, I have to divide /100 the values for presentation purposes, one of them turns out as 0.74, and the other one as 0.75 (Using the same procedures on both of them).

    Also, for example when using a value of 100 (1.0 when divided), in the Spreadsheet, its value is: 100.05, or if rounded, 101.

    Is there a reason for it, or better yet ... a workaround ???

    Thank you in advance. Greetings,

    Mario

  2. #2
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by Marius
    Hi Everyone !!

    I have the following problem:

    I made an application using VB 6 + MySQL, working fine, however, when I try to export data to an Excel 2003 Worksheet, numeric values tend to "go bananas". Example:

    I have TWO equal values (75) in the same row of data. When exporting to Excel, I have to divide /100 the values for presentation purposes, one of them turns out as 0.74, and the other one as 0.75 (Using the same procedures on both of them).

    Also, for example when using a value of 100 (1.0 when divided), in the Spreadsheet, its value is: 100.05, or if rounded, 101.

    Is there a reason for it, or better yet ... a workaround ???

    Thank you in advance. Greetings,

    Mario
    Hi,

    to explore your numbers, try setting the cell display to a number of decimal places, to see the actual values being imported.

    If 100.05 rounds to 101 I would ask what 'rounding' you are using,
    100.5 would round to 101.

    for further help please post a short sample sheet.

    hth
    ---
    Si fractum non sit, noli id reficere.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1