| | |
FILL COMBO WITHOUT dupes...
![]() |
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
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age application basic beginner birth bmp calculator cd cells.find click client code college 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 save search sendbyte sites sort sql sql2008 sqlserver subroutine tags textbox time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





