| | |
FILL COMBO WITHOUT dupes...
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
![]() |
Hi,
Try This :
Code is easy for ListBox..
If you want To Poulate a Combo Only, Then Place a ListBox on the Form and Set it's property Visible = False
Regards
Veena
Try This :
Code is easy for ListBox..
If you want To Poulate a Combo Only, Then Place a ListBox on the Form and Set it's property Visible = False
vb Syntax (Toggle Plain Text)
Dim str1 As String RS.MoveFirst List1.Clear Combo1.Clear Do While Not RS.EOF str1 = RS("MyField") & "" List1.Text = str1 If List1.SelCount = 0 Then List1.AddItem str1 Combo1.AddItem str1 End If RS.MoveNext Loop
Regards
Veena
Last edited by QVeen72; Jan 8th, 2009 at 12:09 am.
![]() |
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: MSHFlex Grid Field get Highlighted if it is current date
- Next Thread: making macro in vb6
Views: 319 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for Visual Basic 4 / 5 / 6
6 429 2007 access activex add age append application basic beginner birth c++ calculator cd cells.find click client code college column component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report retrieve save search sendbyte sites sort sql sql2008 sqlserver struct subroutine table tags textbox time timer urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





