Consulting

Results 1 to 2 of 2

Thread: Importing data from a MySQL database

  1. #1

    Importing data from a MySQL database

    Good Morning,
    I need a help, I have a routine that searches the data on a MySQL database, the routine is bringing the data but I have 03 columns that are values ​​and when it is imported into EXCEL this is brought as text, what can I do to solve it.


    ** the columns that I need to return in values ​​are highlighted in the imageCapturar.jpg


    Thank you

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Does casting it work?

    Activesheet.Range("D" & I).Value = CInt(gRs!Valor)
    
    or
    
    Activesheet.Range("D" & I).Value = CDbl(gRs!Valor)
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

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