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: 15
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. .

</div>
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


Terkait
Thread Thread Starter Forum Replies Last Post
News : SAAB filed for bankruptcy PermeenMint Mobil 0 20th October 2012 04:48 PM
HELP : ComboBox Javascript PHPmaster Programming 0 20th November 2011 09:17 AM
[ASK] php multisearch combobox ajax Servermaster Programming 0 20th November 2011 01:46 AM
[Need Help] C#, ComboBox sebagai control Guesuper Programming 0 20th November 2011 01:36 AM
(help) Hardisk dibios ada tulisan S.M.A.R.T. Capable but Command Filed Motherboard360 Hardware 0 18th November 2011 01:57 PM

 


All times are GMT +7. The time now is 03:37 PM.