Oppenhiemer
Programmer
Hi -
This is a lame question I know but here goes..
I have a form based on an Orders table. I have a field on the orders table called "CustCode". I would like to have a DBComboBox lookup component bound to the "CustCode" field on the orders table, to allow users to select a customer code. The ListSource for the DBLookupComboBox is the customers table.
Now I have tried several variations on ListSource,ListField,KeyField,DataSource and Datafield. And I cannot get it to function as one would expect.
If I link the various properties as I think they should be - it allows me to select a value from the list, it stores the value in the correct field - but will not display the selected item (the ComboBox looks blank.)
If I remove the Datasource/Datafield properties (so its un-bound) it functions as expected (expect for the obvios problem that it is no longer bound to any datasource!)
I have probably not explained this very well, so here is a link tha may shed more light on the problem ~:
I seem to remember having problems with these controls in the past (but its been some years now since I have used Delphi - so have forgotten all about it.)
Anyway, any help woul dbe much appreciated.
Cheers..
Opp.
This is a lame question I know but here goes..
I have a form based on an Orders table. I have a field on the orders table called "CustCode". I would like to have a DBComboBox lookup component bound to the "CustCode" field on the orders table, to allow users to select a customer code. The ListSource for the DBLookupComboBox is the customers table.
Now I have tried several variations on ListSource,ListField,KeyField,DataSource and Datafield. And I cannot get it to function as one would expect.
If I link the various properties as I think they should be - it allows me to select a value from the list, it stores the value in the correct field - but will not display the selected item (the ComboBox looks blank.)
If I remove the Datasource/Datafield properties (so its un-bound) it functions as expected (expect for the obvios problem that it is no longer bound to any datasource!)
I have probably not explained this very well, so here is a link tha may shed more light on the problem ~:
I seem to remember having problems with these controls in the past (but its been some years now since I have used Delphi - so have forgotten all about it.)
Anyway, any help woul dbe much appreciated.
Cheers..
Opp.