Article ID: 141173
Article Last Modified on 1/8/2003
Dim ds as Dynaset Data1.RecordSource = dsuse the following:
Dim ds as Dynaset Data1.RecordSource = ds.NameNOTE: The Dynaset object is provided for backwards compatibility. Use of the new enhanced RecordSet object is recommended.
Sub Command1_Click ()
Dim db As Database
Dim ds As Dynaset
Set db = OpenDatabase("c:\vb\biblio.mdb")
Set ds = db.CreateDynaset("Authors")
'set Data1's RecordSource to the Name of the ds object
'works with Visual Basic 3.0, doesn't work with Visual Basic 4.0
Data1.RecordSource = ds
End Sub
Data1.RecordSource = ds
to the following
Data1.RecordSource = ds.Name
resolves the problem.
Additional query words: 4.00 vb4win vb4all
Keywords: kbprb KB141173