AccessDevJunior
Programmer
hya,
i am new to vb6 my experience lies with access.
i have 5 lines of code that retreives data from a table within an accessdatabase. i want to use the same principle to retreive the data but rather than retreive one field from one table i would like to use SQL to get exactly what i want:
Private Sub cmdRun_Click()
Dim db As Database
Dim rs As Recordset
Set db = OpenDatabase("F:\BCT\BCT_be.mdb")
Set rs = db.OpenRecordset("tblEmployeeInfo")
ListCompany.AddItem rs.Fields("Employee Name")
End Sub
If anyone could help me with this it would be a great help?
i am new to vb6 my experience lies with access.
i have 5 lines of code that retreives data from a table within an accessdatabase. i want to use the same principle to retreive the data but rather than retreive one field from one table i would like to use SQL to get exactly what i want:
Private Sub cmdRun_Click()
Dim db As Database
Dim rs As Recordset
Set db = OpenDatabase("F:\BCT\BCT_be.mdb")
Set rs = db.OpenRecordset("tblEmployeeInfo")
ListCompany.AddItem rs.Fields("Employee Name")
End Sub
If anyone could help me with this it would be a great help?