My Code:
What is does: Takes data from field1(Ime) places it into the combobox,then takes data from field2(Prezime) and places it under fileld1.I would it to place that data after field1.Code:Private Sub Form_Load() Set cn = New ADODB.Connection cn.ConnectionString = "Provider= Microsoft.JET.OLEDB.3.51;" & "Data Source=" & App.Path & " \Index.mdb" cn.Open Set rsIndex = New ADODB.Recordset rsIndex.Open " select Ime,Prezime from StudentDetalji order by Ime",cn,adOpendynamic,adLockOptimistic Do until rsIndex.EOF Combo1.AddItem rsIdex("Ime") Combo1.AddItem rsIndex("Prezime") rsIndex.MoveNext Loop
So I would have:
Field1 Filed2
NOT
Filed1
Field2




Reply With Quote