subodh Level: Trainee
 Registered: 03-03-2007 Posts: 1
|
Re: HELP!!! URGENT!!!!
Its simple
Take that field in recordset and add in combo
e.g
Dim rst As New ADODB.Recordset
rst.Open "select nbranch_code,vcbranch_name from branch_master", conn, adOpenDynamic, adLockOptimistic
'If rst.RecordCount > 0 Then
If Not (rst.EOF And rst.BOF) Then
With rst
cmbbranch.Clear
.MoveFirst
Do Until .EOF
cmbbranch.AddItem .Fields(1)
.MoveNext
Loop
End With
-----------Try It
|