Access mysql longtext field from excel

H

hheckner

Hi

In my result set i have one column of (mysql type longtext) which i
cannot read from my vbscript

myRecordSet.Fields.Item(col).value is Null

although the watch point on the resultset shows the right text string
stored in the database.

Any ideas?

Best regards
Hannes
 
J

joel

If the watch is getting data, then there is data. Yo may have a lot of white
character yo are not seeing. Try adding this line of code

msgbox("The length of the cell is : "len(myRecordSet.Fields.Item(col).value))

Another possiblity is the object is not text but some sort of picture?
 
G

gimme_this_gimme_that

In your connection string - what driver are you specifying?

If you're using out of the box ODBC longtext won't be supported.
 
H

hheckner

In your connection string - what driver are you specifying?

If you're using out of the box ODBClongtextwon't be supported.

Hi,

we use the following connection string:
oConn.Open "DRIVER={MySQL ODBC 5.1 Driver};SERVER=" & curPreset.host &
";USER=" & user & ";PASSWORD=" & password & ";database=" &
curPreset.db & ";"

Any alternatives?

Thanks
Hannes
 
H

hheckner

If the watch is getting data, then there is data.  Yo may have a lot ofwhite
character yo are not seeing.  Try adding this line of code

msgbox("The length of the cell is : "len(myRecordSet.Fields.Item(col).value))

Another possiblity is the object is not text but some sort of picture?

No there is text in there. No pictures.
Funny thing is that we can see the text string in the debugger, but we
cannot get it work in the script.
 
A

Alan Linnane

It's about 3 years later and now I have the same problem ... did you find a solution that you remember?

I've done a lot of work and now have this issue is undermining all my effort?

can't find a solution via google (yet).

Best regards.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top