General information
Category:
Forms & Form designer
Title:
Drop-down list and alpha order
I’m populating the display values of a drop-down list from a cursor.
THISFORM.CodeFrame.SponsorPage.SponCatCbo.RowSource=""
SELECT nSpCatKey,cSpCatName FROM SponCategory ORDER BY cSpCatName
THISFORM.CodeFrame.SponsorPage.SponCatCbo.RowSource="Q_SponCat.cSpCatName"
When the form is displayed the value in SponCatCbo is wrong, if I order by nSpCatKey it’s right. I understand why it’s doing this but I don’t know how I can display the values in alpha order and still display the right value. I’ve tried setting BoundTo=.t. but then the field is empty.
Any help on this would be appreciated.
/Chris
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