dbTalk Databases Forums  

Toggle Button fill values combo box

comp.databases.ms-access comp.databases.ms-access


Discuss Toggle Button fill values combo box in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
flebber
 
Posts: n/a

Default Toggle Button fill values combo box - 01-08-2011 , 07:27 AM






I am trying to get an event to work so that when a user hits a toggle
button, there are 5 toggle buttons in a frame a unique value list is
populated in a combo.box.

However I end up with the text value not the tblvalues in the combo
box. What do I need to do.

Private Sub TogProgramming_GotFocus()
cbxSubCategory.RowSource = "tblprogramming"
End Sub

Reply With Quote
  #2  
Old   
Marshall Barton
 
Posts: n/a

Default Re: Toggle Button fill values combo box - 01-08-2011 , 10:22 PM






flebber wrote:

Quote:
I am trying to get an event to work so that when a user hits a toggle
button, there are 5 toggle buttons in a frame a unique value list is
populated in a combo.box.

However I end up with the text value not the tblvalues in the combo
box. What do I need to do.

Private Sub TogProgramming_GotFocus()
cbxSubCategory.RowSource = "tblprogramming"
End Sub

It sounds like the combo box's properties do not reflect
what the row source table/query is returning. Check the
BoundColumn, ColumnCount and ColumnWidths properties against
tblprogramming's field list.

Maybe all you need to do is use a query to select just the
two fields the combo box needs?

--
Marsh

Reply With Quote
  #3  
Old   
flebber
 
Posts: n/a

Default Re: Toggle Button fill values combo box - 01-09-2011 , 12:28 AM



On Jan 9, 3:22*pm, Marshall Barton <marshbar... (AT) wowway (DOT) com> wrote:
Quote:
flebber wrote:
I am trying to get an event to work so that when a user hits a toggle
button, there are 5 toggle buttons in a frame a unique value list is
populated in a combo.box.

However I end up with the text value not the tblvalues in the combo
box. What do I need to do.

Private Sub TogProgramming_GotFocus()
* *cbxSubCategory.RowSource = "tblprogramming"
End Sub

It sounds like the combo box's properties do not reflect
what the row source table/query is returning. *Check the
BoundColumn, ColumnCount and ColumnWidths properties against
tblprogramming's field list.

Maybe all you need to do is use a query to select just the
two fields the combo box needs?

--
Marsh
What is the "boundcolumn". Where do I find its properties?

Reply With Quote
  #4  
Old   
Marshall Barton
 
Posts: n/a

Default Re: Toggle Button fill values combo box - 01-09-2011 , 10:18 AM



flebber wrote:

Quote:
On Jan 9, 3:22*pm, Marshall Barton wrote:
flebber wrote:
I am trying to get an event to work so that when a user hits a toggle
button, there are 5 toggle buttons in a frame a unique value list is
populated in a combo.box.

However I end up with the text value not the tblvalues in the combo
box. What do I need to do.

Private Sub TogProgramming_GotFocus()
* *cbxSubCategory.RowSource = "tblprogramming"
End Sub

It sounds like the combo box's properties do not reflect
what the row source table/query is returning. *Check the
BoundColumn, ColumnCount and ColumnWidths properties against
tblprogramming's field list.

Maybe all you need to do is use a query to select just the
two fields the combo box needs?


What is the "boundcolumn". Where do I find its properties?

The BoundColumn property tells the combo box which field in
it's row source should be used as the combo box's value.

The combo box properties are in the combo box's property
sheet. Open the form in design view, then use the View menu
to display the property sheet or double click the combo box.

See VBA Help for details about a specific property. Easiest
way to get to a property's help topic is to click on the
property's name in the property sheet and hit the F1 key.

--
Marsh

Reply With Quote
Reply




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 On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.