Why not just use the RowSourceType 3 (SQL Statement) in your combobox? 

Put this into your control
RowSourceType=3
RowSource= "Select dist Str(year(start),4) from leases into cursor curYears"

In Destroy, if no private Datasession:
Use in select("CurYears")




[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: https://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: https://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: https://leafe.com/archives
This message: 
https://leafe.com/archives/byMID/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to