General information
Category:
Forms & Form designer
>I have a table index on "Clients.Name" and I have a combo Box to select Clients, I want the table be displayed in Alfabethic order in the combo Box. How to do that?
Carlos Lima, your name seems to be Portuguese, and Mindelo is a locality near my home place (Porto - Portugal) but the flag...
Anyway, about the question you have:
The more practical way to do that is the following:
* On the form load method create the SQL statement that follows
SELECT a.name, a.clientno FROM clients a ORDER BY a.name INTO CURSOR cursor_name
* Define the following combo properties
combo1.controlsource = 'orders.clientno' && Assuming that you have a table
&& named orders and the field you want
&& to define is one called clientno
&& but it could be a memory variable
&& or a form user defined property
combo1.rowsourcetype = 2 && 2 = table or cursor alias
combo1.rowsource = 'cursor_name'
combo1.style = 2 && dropdown list
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only