when i click on command button on giving ssn it has to retrive all info from employee table
adoRecordset.Open "select name from employee", db.Connectionstring
adoRecordset.Open "select age from employee", db.Connectionstring
adoRecordset.Open "select dept from employee", db.Connectionstring
If (Combo1 = "ssn") Then
Set Text1.DataSource = adoRecordset
Text1.DataField = "name"
Set Text2.DataSource = adoRecordset
Text2.DataField = "age"
Set Text3.DataSource = adoRecordset
Text3.DataField = "dept"
End If
is this ok now sir