I quite like using a select statement, you set the rowsourcetype to "3 - SQL Statement"
and the use something like this for the RowSource
Code:
SELECT NAMEREF,FULLNAME(TITLE,FORENAME,SURNAME) FROM FCTUSER WHERE SIGNATORY ORDER BY NAMEREF INTO CURSOR CFCTAUTH
I've deliberately chosen a somewhat cumbersome select statement so you can see how flexible it can be, in the example I have used a UDF
to build an otherwise non-existant 'fullname'
A simpler example might be:
Code:
SELECT CODE, DESCRIP FROM MYTABLE ORDER BY CODE INTO CURSOR TMPTABLE
Regards
Griff
Keep [Smile]ing
There are 10 kinds of people in the world, those who understand binary and those who don't.
Thanks Griff! But it does'nt work in my form..
I have a table: tbl_status
with fields: statno, astatus
I put records in it and when I run my form, there were no items appeared in the combo box..
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.