i've found some helpful code and changed it as my requirement and it works. it is showing values in combobox which were updated in new company textbox form.
Private Sub Form_Initialize()
On Error GoTo Form_Initialize_Err
Dim cnn As New ADODB.Connection
Dim rst As New ADODB.Recordset
cnn.Open "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=D:\Database Folder\Notice Book\Notice Book project\database\Notice Book.mdb;Persist Security Info=False"
rst.Open "SELECT DISTINCT [CompanyName] FROM CompanyDetails ORDER BY [CompanyName];", _
cnn, adOpenStatic
rst.MoveFirst
With Me.CmbSelectCompany
.Clear
Do
.AddItem rst![CompanyName]
rst.MoveNext
Loop Until rst.EOF
End With
Form_Initialize_Exit:
On Error Resume Next
rst.Close
cnn.Close
Set rst = Nothing
Set cnn = Nothing
Exit Sub
Form_Initialize_Err:
MsgBox Err.Number & vbCrLf & Err.Description, vbCritical, "Error!"
Resume Form_Initialize_Exit
End Sub
thanks for ur time and help :)