haaa....I am totally new to Visual basic....I am not able to understand what you are telling...can you explain in detail...plzz...I have done some program to extract the data...in the program if you look at the SQL statement(underlined) I want to insert all the values of
fullname into the combo box, so that if I select one of the fullname then the data regarding that fullname should be extracted and should be displayed after pressing the Ok button
Private Sub Okbutton_Click()
On Error Resume Next
Dim sConnect As String
Dim db As Database
Dim rs As Recordset
Dim Ws As Workspace
'Dim ID As Double
'Dim doubleID1 As Double
Dim intstring As String
Set Ws = DBEngine.Workspaces(0)
sConnect = "ODBC;DSN=WinUTMS_RT_DB;UID=Localhost;PWD=;Databas e=WinUTMS_RT_DB;"
Set db = Ws.OpenDatabase("", 0, 0, sConnect)
Set rs = db.OpenRecordset("SELECT Fullname FROM abssubtest")
Do While Not rs.EOF
'ID = rs!Messwert
'doubleID1 = rs!UPLimWert
intstring = rs.Fields("Fullname")
rs.MoveNext
Loop
End Sub