Sheetal -
2010-04-21 10:38:31 UTC
Dim rs As Recordset
Sub opendata()
Set db = OpenDatabase("C:\Program Files\Microsoft Visual Studio\VB98\tyu.mdb")
Set rs = db.OpenRecordset("Select*from Table1", dbOpenDynaset)
End Sub
Sub showfields()
Form1.Text1.Text= rs.Supplier_id
Form1.Text1.Text=rs.Supplier_City
End Sub
Supplier_id and Supplier_City are the fields in Table1
in the click event of a command button ....Call opendata
Call showfield
i am getting an error ...method not found or data member not found in showfield...plz help me rectify this