I am using MS Access 2007 on an XP platform. I have forms (split and single) with listboxes. If a listbox is bound to a field that can contain a null, I would like the listbox to include a blank entry at the top of the list so it is readily apparent when the bound field contains a null and so that the user can deselect a value and revert to a null value. I would also like the listbox to display the entry that corresponds to the value of the bound field, whereas it currently just displays the first entry.
I don't know if this is relevant, but one listbox is bound to a field, that stores a number, which is a foreign key to another table that contains a second field, which is the description. So the row source is actually a query that displays all the descriptions - here is the sql code:
A second listbox is similar, except the query contains an expression:
Finally, when I modify values using the form, the changes are not reflected in the bound table. Yet the property sheet for the form indicates that Allow Additions/Deletions/Edits are all Yes.
I don't know if this is relevant, but one listbox is bound to a field, that stores a number, which is a foreign key to another table that contains a second field, which is the description. So the row source is actually a query that displays all the descriptions - here is the sql code:
Code:
SELECT tblPHAs.Name FROM tblPHAs ORDER BY tblPHAs.Name;
Code:
SELECT [First Name] & " " & [Last Name] AS Expr2 FROM tblScreeners ORDER BY tblScreeners.[Last Name];
Comment