
Microsoft Visual C++ Run time library Run time error R6025
Need help,
I have just created a new form with the data wizard.
I have replaced the connection to a db via code by a connection to a
DataEnvironment
object as explained in chapter 12 - Sams - teach yourself database
programming in 24 hours
and here is the error message I got :
Run time Error
Program : VB6.exe
R6025 :
pure virtual function call
Here are the lines I replaced :
'Dim db As Connection
'Set db = New Connection
'db.CursorLocation = adUseClient
'db.Open "PROVIDER=Microsoft.Jet.OLEDB.3.51;Data Source=C:\Program
Files\Microsoft Visual Studio\VB98\hr5.mdb;"
'Set adoPrimaryRS = New Recordset
'adoPrimaryRS.Open "select
beginDate,done,endDate,milestone,numsubtasks,projectDesc,Projectid,projectNa
me,teamName from projects", db, adOpenStatic, adLockOptimistic
Here are the new lines :
DataEnvironment1.comProjects
DataEnvironment1.comToDo
Set adoPrimaryRS = DataEnvironment1.rscomProjects