Wrox Programmer Forums
|
SQL Language SQL Language discussions not specific to a particular RDBMS program or vendor.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Language 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 October 20th, 2011, 01:42 AM
Registered User
 
Join Date: Oct 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default VB6-MySQL error

Error:This property is read only now


cnMySql.CursorDriver = rdUseOdbc
cnMySql.Connect = "uid=root; pwd=password; server=127.0.0.1;" & _
"driver={MySQL ODBC 3.51 Driver}; database=flight;"

cnMySql.EstablishConnection


With rdoQry
.Name = "selectUsers"
.SQL = "select * from users where id='" + Text1.Text + "' and pwd='" + Text2.Text + "'"
.RowsetSize = 1
Set .ActiveConnection = cnMySql
Set rdoRs = .OpenResultset(rdOpenStatic, rdConcurRowVer)
End With

With rdoRs
If .EOF Then
MsgBox ("Username or password is invalid")
Else
MsgBox ("Login Successful")
Unload Me

End If


End With


************************************************** ****
What i have done is, i wrote this code to access MySql from vb6 , it works fine for the first time when i enter the username and password, but when i click it the 2nd time, it throws an error, i am stuck on this , please somebody flush this problem and give me a solution with explanation . Thank you.





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
error related to vb6 Rajesh Pachouri Pro VB 6 0 September 16th, 2006 03:14 AM
vb6.exe application error myth12345 VB How-To 1 December 27th, 2004 10:23 AM
Database problems with mySQL and VB6 rgtuplin Pro VB 6 3 February 4th, 2004 04:06 PM
Out of Memory error from VB6 App on Win98 pavel Pro VB 6 3 January 12th, 2004 07:00 PM





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