954,568 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

VB6 - MySQL

Hi All,

I am using VB6 with mysql database recently. But I am having problem with showing the text type of mysql field value in a Msflexgrid.

Msflexgrid1.TextMatrix(i, 3) = "" & rdoRS.rdoColumns("products_publisher").Value

This line gives error message. Anybody could help me?

Many thanks.

Tomii

tomii
Newbie Poster
4 posts since Aug 2008
Reputation Points: 10
Solved Threads: 0
 

post the error message also plz, so that the problem is specific.

aktharshaik
Posting Whiz
316 posts since Aug 2008
Reputation Points: 26
Solved Threads: 40
 

Hi,

Try This :

Msflexgrid1.TextMatrix(i, 3) = "" & rdoRS("products_publisher")

Make sure, whatever ResultSet you have opened has a Field named "products_publisher"

Regards
Veena

QVeen72
Posting Shark
950 posts since Nov 2006
Reputation Points: 84
Solved Threads: 143
 
post the error message also plz, so that the problem is specific.

Run-time Error '40002'

No other text message.

tomii
Newbie Poster
4 posts since Aug 2008
Reputation Points: 10
Solved Threads: 0
 

Tried as rdoRS("products_publisher")

But still hangs there...

tomii
Newbie Poster
4 posts since Aug 2008
Reputation Points: 10
Solved Threads: 0
 

Hi,

Can you post , how rdoRS is opened..?

REgards
Veena

QVeen72
Posting Shark
950 posts since Nov 2006
Reputation Points: 84
Solved Threads: 143
 

Thanks Veena,

I used RDO connection and couldn't retrieve the text type of data, now I use ADO. Works great!

Hi,

Can you post , how rdoRS is opened..?

REgards Veena

tomii
Newbie Poster
4 posts since Aug 2008
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You