![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello, I have a specific problem with a continuous form, dependent comboboxes, and hiding key values. After a little googling this might simply be a buggy area of Access - but I wonder if someone's solved this issue. Mine is a dataview (continuous) form in Access 2007 with linked combo boxes. User is presented with a form bound to a table of existing data; on selecting a new first fields - ex. Category - a subset is selected in field 2, Item. The bound table has only the ID values, CategoryID, ItemID. Rowsource of the second combobox selects on the contents of the first selected box as it narrows the user's choices. The contents of the second box are generated by a query with a WHERE condition of the first control's bound ID field. All works fine when I display the key of the Item (ItemID) in addition to ItemShortName and ItemDescription -- all records have values. But my goal is to hide ItemID, showing the short name which is more useful (otherwise User needs to click the control to see short name etc). But when I make the width of that field 0, which SHOULD work, most of the data disappear too. It seems as if I am asking too much of the form to display anything but the bound value -- but I don't see any documentation saying this does not work. For example, the record source of combobox for the second field shows all data items as such: CategoryName | ItemID > ItemName | ... ...the form displays this in the default view: Fruit | ItemID1 (Apples) Fruit | ItemID2 (Oranges) Fruit | ItemID5 (Kumquats) ...and the user can drop down the ItemID control for more choices. However, if I modify the record source of combobox for the second field to hide the ID field and only show ItemName I get an assortment of blank controls: CategoryName | ItemName | ... Fruit | Apples Fruit | Fruit | ...now I lose Oranges and most of the ItemID controls have no label, which is a little alarming. MS example for dependent control boxes: http://www.microsoft.com/download/en...playlang=en&id =24692 A promising example that doesn't seem to work: http://www.blueclaw-db.com/download/...dent_combo_box. htm I've a feeling I am missing something obvious. Happy to go into more detail (there's a little VBA identical to the MS example) if someone feels they have an insight. Thanks! |
#3
| |||
| |||
|
|
Hello, I have a specific problem with a continuous form, dependent comboboxes, and hiding key values. *After a little googling this might simply be a buggy area of Access - but I wonder if someone's solved this issue. Mine is a dataview (continuous) form in Access 2007 with linked combo boxes. *User is presented with a form bound to a table of existing data; on selecting a new first fields - ex. Category - a subset is selected in field2, Item. *The bound table has only the ID values, CategoryID, ItemID. Rowsource of the second combobox selects on the contents of the first selected box as it narrows the user's choices. *The contents of the second box are generated by a query with a WHERE condition of the first control's bound ID field. All works fine when I display the key of the Item (ItemID) in addition toItemShortName and ItemDescription -- all records have values. *But my goal is to hide ItemID, showing the short name which is more useful (otherwise User needs to click the control to see short name etc). *But when I make the width of that field 0, which SHOULD work, most of the data disappear too. *It seems as if I am asking too much of the form to display anythingbut the bound value -- but I don't see any documentation saying this does not work. For example, the record source of combobox for the second field shows alldata items as such: CategoryName | ItemID > ItemName | ... ...the form displays this in the default view: Fruit | ItemID1 (Apples) Fruit | ItemID2 (Oranges) Fruit | ItemID5 (Kumquats) ...and the user can drop down the ItemID control for more choices. However, if I modify the record source of combobox for the second field to hide the ID field and only show ItemName I get an assortment of blank controls: CategoryName | ItemName | ... Fruit | Apples Fruit | Fruit | ...now I lose Oranges and most of the ItemID controls have no label, which is a little alarming. MS example for dependent control boxes:http://www.microsoft.com/download/en...aylang=en&id=2... A promising example that doesn't seem to work:http://www.blueclaw-db.com/download/..._combo_box.htm I've a feeling I am missing something obvious. *Happy to go into more detail (there's a little VBA identical to the MS example) if someone feels they have an insight. Thanks! |
#4
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |