Ceriwis  

Go Back   Ceriwis > HOBI > Komputer & Teknologi > Programming

Programming Share, tanya jawab, saling bantu antar programmer dengan berbagai macam bahasa pemrograman.

Reply
 
Thread Tools
  #1  
Old 20th November 2011
SinggahDapur SinggahDapur is offline
Ceriwiser
 
Join Date: Nov 2011
Posts: 348
Rep Power: 14
SinggahDapur mempunyai hidup yang Normal
Default tampilin 2 filed di combobox di vb

gan ane mau nanya tentang combobox di vb..

ane pake vb 2005 dan sql server 2005,



ane mau nampilin id_satuan dan nama satuan gan. .



ane pake coding ini ga bisa gan. .



Sub sort_cmbCabang()

Try

a = ("select(satuan.id_satuan & ' - ' & satuan.nama)as [sat]from satuan;")

While Reader.Read

combobox1.Items.Add(Reader.Item("sat"))

End While

myCon.Close()

combobox1.SelectedIndex = 0

Catch ex As Exception

MsgBox("Error pada sortcb" & vbCrLf & Err.Description)

myCon.Close()

End Try

End Sub





mohon pencerahannya. .



Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


 


All times are GMT +7. The time now is 12:54 AM.


no new posts