vb6 - ADODB failed to select Extended ASCII characters -


I am using ADODB with VB6 to select data from Excel, expanded in the "Book_Title" column in Excel ASCII characters (Abrev- ??)

But when the following code is used, then I just get "A" instead of Abreve.

  sConn = "driver = Microsoft Excel driver (* .xls);" & Amp; "DBQ = D: \ Sheik \ Metadata. Clus" R. Open [SELECT [Book_Title], [Sheet1 $], [sConn]    

The problem here is that the Excel driver is converting wire to ANSI symbols for some reason. Some "clever" code is changing "258" A (65).

If you have If the JAT drivers are installed with the ISAM Excel driver, the following connection string will use them:

  sConn = "Provider = Microsoft .jet.l.tdb.0.4; Data Source = D: \ Sheik \ Metadata. Clicks; Extended Properties = "" Excel 8.0; "  

You will now be able to return unrelated strings, however, possibly they will not be able to see any built-in VB control or IDE correctly for that matter, because it is not possible that this The character is present on your current code page.

But you can confirm that the first letter is correct using the Esctus (W) function, in which the characters in the string have been received to see the mid $ ().

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -