A Microsoft Office (Excel, Word) forum. OfficeFrustration

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   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

BoundColumn property



 
 
Thread Tools Display Modes
  #1  
Old June 1st, 2010, 06:03 PM posted to microsoft.public.access.forms
gator
external usenet poster
 
Posts: 166
Default BoundColumn property

Can someone please explain in layman terms, the purpose of BoundColumn in
ComboBox in terms of viewing two columns when dropped down and storing one
value in the table and displaying different value in the form?

I want to be able to see two columns in drop down mode, column 1 value
stored in table and column 2 value displayed in form data view.
  #2  
Old June 1st, 2010, 06:56 PM posted to microsoft.public.access.forms
Douglas J. Steele[_3_]
external usenet poster
 
Posts: 3,143
Default BoundColumn property

Since you want the value of the first column to be stored in the table, set
the BoundColumn to 1.

Since you want the value of the second column to be displayed, set the
ColumnWidths property to 0. (if you really wanted to, you could set it to,
say, 0;1" to ensure that the second column only shows as 1 inch wide)

Make sure the ColumnCount property is set to 2.

--
Doug Steele, Microsoft Access MVP
http://www.AccessMVP.com/DJSteele
Co-author: Access 2010 Solutions, published by Wiley
(no e-mails, please!)

"gator" wrote in message
...
Can someone please explain in layman terms, the purpose of BoundColumn in
ComboBox in terms of viewing two columns when dropped down and storing one
value in the table and displaying different value in the form?

I want to be able to see two columns in drop down mode, column 1 value
stored in table and column 2 value displayed in form data view.



  #3  
Old June 2nd, 2010, 06:58 AM posted to microsoft.public.access.forms
Rick Brandt
external usenet poster
 
Posts: 4,354
Default BoundColumn property

gator wrote:

Can someone please explain in layman terms, the purpose of BoundColumn in
ComboBox in terms of viewing two columns when dropped down and storing one
value in the table and displaying different value in the form?

I want to be able to see two columns in drop down mode, column 1 value
stored in table and column 2 value displayed in form data view.


The column value you see when the ComboBox is not dropped is always the
left-most column with a non-zero width. You can store any column you want
and that can even be a column that you do not show, but the first visible
column in the drop-down is always the column shown when not dropped down.

 




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:06 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.