Ken Mayer [dBVIPS]
2008-12-08 05:29:12 UTC
I set up a form with a combobox that is not datalinked, but has a field as the datasource. The datasource field is a calculated field. When the form opens, the combobox has the field value of the first record in the field’s table. However, when I drop down a list, the list is empty for the combobox.
The calculated field puts together the last, first fields, and the table is indexed on a cmobined index of 2 fields - last, first.
Is it possible to use a calculated field for a combobox datasource?
Not as such. The problem is that a calculated field is a virtual fieldThe calculated field puts together the last, first fields, and the table is indexed on a cmobined index of 2 fields - last, first.
Is it possible to use a calculated field for a combobox datasource?
-- it doesn't actually exist until the record has focus.
You may want to add a routine that creates an array, and populates it
from the calculated field ... then use the array as the dataSource for
the combobox.
Ken
--
/(Opinions expressed are purely my own, not those of dataBased
Intelligence, Inc.)/
*Ken Mayer* [dBVIPS]
/Golden Stag Productions/
dBASE at goldenstag dot net
http://www.goldenstag.net/GSP
http://www.goldenstag.net/dbase/dBASEBooks.htm
http://www.goldenstag.net/dbase