On Tuesday 08 January 2008 4:09 pm, Ed Leafe wrote: > On Jan 8, 2008, at 5:59 PM, Adrian Klaver wrote: > > How does one go about getting a dropdown list to display a NULL value? > > In the properties for the list Value is set to < None > and > > ValueMode = > > String. If I go to record where there is a NULL value for the field > > I get the > > first choice displayed. If I go to a record with a non NULL value I > > get the > > correct value displayed. > > Well, remember that the string "< None >" and the value None are not > equal, so setting the Value to the former will not match a None value. > > What it sounds like you want to do is use "< None >" as the > displayed value, but None as the actual underlying value. In this > case, you'd set up the Keys property to contain the actual values, > including the None value, and a corresponding list for the Choices > property; you'd also need to set ValueMode="Key" to have the control > return the underlying Key values instead of the displayed string values. > > Is that too confusing? > > -- Ed Leafe No. Just one question. Where is the Keys property?
-- Adrian Klaver [EMAIL PROTECTED] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/dabo-users/[EMAIL PROTECTED]
