Oct 6, 2005 #1 HydraNL Technical User May 9, 2005 74 NL Hi, How do I change the text in the ComboBox from Capital to non-capital? The ComboBox is filled on Form_Load() Do Until rs.EOF Combo1.AddItem rs!TEST rs.MoveNext Loop Greetings J. Radjesh Klauke (Netherlands)
Hi, How do I change the text in the ComboBox from Capital to non-capital? The ComboBox is filled on Form_Load() Do Until rs.EOF Combo1.AddItem rs!TEST rs.MoveNext Loop Greetings J. Radjesh Klauke (Netherlands)
Oct 6, 2005 #2 zemp Programmer Jan 27, 2002 3,301 CA Look into the LCase() and UCase() functions. Code: ... Combo1.AddItem LCase(rs!TEST) ... zemp Upvote 0 Downvote
Oct 6, 2005 #3 Sumitdev Programmer Apr 17, 2003 22 GB You could use the LCase function Code: Do Until rs.EOF Combo1.AddItem lcase(rs!TEST) rs.MoveNext Loop Upvote 0 Downvote
You could use the LCase function Code: Do Until rs.EOF Combo1.AddItem lcase(rs!TEST) rs.MoveNext Loop
Oct 6, 2005 Thread starter #4 HydraNL Technical User May 9, 2005 74 NL Thanks guys. Works fine. One question remains. How do I make onlythe first letter Capital and the rest LCase? Greetings J. Radjesh Klauke (Netherlands) Upvote 0 Downvote
Thanks guys. Works fine. One question remains. How do I make onlythe first letter Capital and the rest LCase? Greetings J. Radjesh Klauke (Netherlands)
Oct 6, 2005 1 #5 tsdragon Programmer Dec 18, 2000 5,133 US Code: Combo1.AddItem UCase(Left(rs!TEST, 1)) & LCase(Right(rs!TEXT, Len(rs!TEXT)-1)) Tracy Dryden Meddle not in the affairs of dragons, For you are crunchy, and good with mustard. Upvote 0 Downvote
Code: Combo1.AddItem UCase(Left(rs!TEST, 1)) & LCase(Right(rs!TEXT, Len(rs!TEXT)-1)) Tracy Dryden Meddle not in the affairs of dragons, For you are crunchy, and good with mustard.
Oct 6, 2005 2 #6 HarleyQuinn Programmer Jan 15, 2003 4,769 GB Tracy, An easier way to convert to Proper case would be to use: Code: Combo1.AddItem StrConv(rs!TEST, vbProperCase) Cheers HarleyQuinn --------------------------------- Get the most out of Tek-Tips, read FAQ222-2244 before posting. Upvote 0 Downvote
Tracy, An easier way to convert to Proper case would be to use: Code: Combo1.AddItem StrConv(rs!TEST, vbProperCase) Cheers HarleyQuinn --------------------------------- Get the most out of Tek-Tips, read FAQ222-2244 before posting.
Oct 6, 2005 Thread starter #7 HydraNL Technical User May 9, 2005 74 NL The code of HarleyQuinn works fast. But both of you deserve a shiny. Thank you both for the effort. Greetings J. Radjesh Klauke (Netherlands) Upvote 0 Downvote
The code of HarleyQuinn works fast. But both of you deserve a shiny. Thank you both for the effort. Greetings J. Radjesh Klauke (Netherlands)
Oct 6, 2005 #8 HarleyQuinn Programmer Jan 15, 2003 4,769 GB You're welcome, thanks for the star HarleyQuinn --------------------------------- Get the most out of Tek-Tips, read FAQ222-2244 before posting. Upvote 0 Downvote
You're welcome, thanks for the star HarleyQuinn --------------------------------- Get the most out of Tek-Tips, read FAQ222-2244 before posting.
Oct 7, 2005 #9 tsdragon Programmer Dec 18, 2000 5,133 US HydraNL: Thanks for the star! HarleyQuinn: I'd completely forgotten about strConv! Thanks for reminding me! Tracy Dryden Meddle not in the affairs of dragons, For you are crunchy, and good with mustard. Upvote 0 Downvote
HydraNL: Thanks for the star! HarleyQuinn: I'd completely forgotten about strConv! Thanks for reminding me! Tracy Dryden Meddle not in the affairs of dragons, For you are crunchy, and good with mustard.