I have a table called Fruit. It has 3 columns
Id - autonumber column
FruitName
Available - When false we have run out of that fruit.
I have a second table called KidsChoice. This table identifies the kid and their choice of fruit so it has columns
KidName
FruitId - contains an Id from the Fruit table
I have a form which displays the KidsChoice as a datasheet. The FruitId column is a combo box displaying the FruitName. It's row source by default is all the Fruit records. When the combo box gets focus its row source is changed (via GotFocus event) to only the available fruit. When the combo box loses focus its row source is changed (via LostFocus event) back to all fruit.
This very nicely allows unavailable fruit to be displayed in the datasheet where it had been once available and chosen in the past. At the same time it restricts any new fruit selections to available fruit. This is exactly what I want. Further more, I can arrow through the cells, traversing over no longer available fruit choices or available fruit choices and the cells display their fruit names happily at all times.
Now I split the database into front end and back end. And my problem begins (both in version 2003 and 2007).
When I display the datasheet and give focus to a cell containing an invalid fruit and then arrow up or down (not left or right) to a different record, the invalid fruit name is no longer visible, a blank cell appears instead. When I arrow back to the cell, the name appears again. If I arrow left to the KidName the invalid fruit name appears and if I now arrow to another record the invalid fruit name remains displayed.
I'm trying to understand why it works in the unsplit database and not in the split one. More importantly I'm trying to get the bugger to work. Any assistance is appreciated thanks.
Attached are 2 zip files with (one for 2003 version and other for 2007)
FruitChoices database to demonstrate the nicely working display of invalid fruit
FruitChoicesSplit databases to demonstrate the misbehaving display of invalid fruit
2007 version - FruitChoicesSplit.zip
2003 version - 2003FruitChoicesSplit.zip
In the databases "Orange" is the unavailable fruit. It correctly displays in the first but not in the last.