Defining a standard field as a type "combo box" will not achieve the results you want.<br><br>Paradox 8 and 9 (maybe 7 too) comes with some Active X controls including a combo box that you can tie to a table. Display the Active X toolbar and check out "combobox" in the online help.<br><br>Hope that helps.<br><br>P.A.L.
Actually, I worked and worked on this and found an answer:<br><br>The DataSource command will fill a combo box that is specified as a combo box with the fields left blank. I ran a programmed query and set the datasource to Answer.<br><br>It was a little more complex to get the second combo box to respond "on the fly" to the data in the first. I ran a second query from the value selected in the first box (in Depart), then, right after that in the same code, used fieldname.listname.list.Count = 0 to empty the second list, then refilled it with fieldname.listname.datasource = "[RIV:Answer.fieldname]"<br><br>It might be simpler to use the ActiveX; I'll give it a try.
Sharon,<br><br>Wow. I just learned something you might find useful. You can easily set the list values of a field with the properties of a combo box.<br><br>Add the line:<br>self.datasource = "[TABLENAME.FIELDNAME]"<br><br>to the list object of the combo box in the Arrive method. The mistake I've always made was trying to set the command in the arrive event for the field. There is a sub-element of the combo box called #list[somenumber]. The syntax for the line includes the quotes and the square brackets. Replace TABLENAME and FIELDNAME with the required table and field.<br><br>I can't believe it worked.<br><br>Good luck, Pat<br>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.