If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Access > Combo box value in VBA Coding

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-06-12, 02:04
Toffer Toffer is offline
Registered User
 
Join Date: Feb 2012
Posts: 2
Question Combo box value in VBA Coding

Hello Every one..

I have this combo box that control source as ID keys. is column count in 2 with the width of 0";1" so the txt value appear in drop down list in combo box but the default value in number and it is hidden.
my question is how can i point the text value in VBA Code. so that it will appear in other textbox as text not as numbers?


hope you understand want to ask..

Thanks in advance for the quick reply..
Reply With Quote
  #2 (permalink)  
Old 02-06-12, 02:48
Sinndho Sinndho is offline
Registered User
 
Join Date: Mar 2009
Posts: 3,446
You can refer to the columns of a combo (or list) box using the syntax:
Code:
ComboName.Column(x)
Where x is the numeric index of the column you want to address. The first (leftmost) column being Column(0).
__________________
Have a nice day!
Reply With Quote
  #3 (permalink)  
Old 02-06-12, 03:46
Toffer Toffer is offline
Registered User
 
Join Date: Feb 2012
Posts: 2
That it!
it work.. thanks Sinndho
Reply With Quote
  #4 (permalink)  
Old 02-06-12, 05:34
Sinndho Sinndho is offline
Registered User
 
Join Date: Mar 2009
Posts: 3,446
You're welcome!
__________________
Have a nice day!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On