Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB 6
|
Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 4th, 2004, 03:47 PM
Registered User
 
Join Date: Feb 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Database problems with mySQL and VB6

Evening All,
I've got a connection to a mySQL database set up using myODBC. The connection opens as does the recordset. I begin a new transaction and tell the recordset to create a new record. It writes the first two fields (one is defined as date field, the other a time field) but when it comes to the third which is a varchar(255) field, it crashes out with a 'Multiple Step Operation Generated Erros - check each status value."

So when you query conn.errors.count, there is only 1 error - this is 3625. 3625 basically says that it can't find the object in the requested collection. I've been back on the mySQL server and double checked the stupid thinks like spelling. I've even dropped the column from the table and then added it back in again to make sure nothing had become corrupt, but still get the error. It appears every time I run the code.

Can any one offer any suggestions?? I'm happy to try anything at this point! Can't seem to find anything similar to this on the net at all....

The line of code which causes the problem is:-

rs.fields("loginfo") = logdetail

Cheers
Richard

 
Old February 4th, 2004, 03:57 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

hi there..

this may sound stupid..
but try this things..

first of all.. the source for your query must include the field.. is that ok???

another thing you can try, if to pause the code in the line that has the error, so you can check if the recorset really has that field on it...

HTH...

Gonzalo Bianchi
 
Old February 4th, 2004, 04:01 PM
Registered User
 
Join Date: Feb 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Gonzalo,
Yes the table name is quoted correctly in the code, as is the field name. What I can't understand is that the code must be finding the field, because when you pause the code and place the mouse over the line the 'tip' box appears with rs.fields("loginfo") = Null

So it knows its currently a null field, it just won't accept the string I'm trying to put in it!

Cheers
Richard

 
Old February 4th, 2004, 04:06 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

then you have another type of error..

try inserting less data..

do a run with f8.. maybe the error is in another line???

try to left the field empty...

HTH...

Gonzalo Bianchi





Similar Threads
Thread Thread Starter Forum Replies Last Post
how do you link VB6 to Mysql damanka2001 Beginning VB 6 1 September 19th, 2006 01:07 PM
Problems with CurrentRegions (Excel) in VB6 I_See Excel VBA 0 June 22nd, 2006 01:51 PM
Problems with php and mysql jessica368 MySQL 0 November 3rd, 2005 04:36 PM
connect to mysql problems Deuce868 JSP Basics 1 March 7th, 2004 10:50 AM
Problems Installing VB6 app developed in XP on NT chiefouko VB Databases Basics 16 November 10th, 2003 08:29 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.