John Morris
10-04-2001, 04:55 AM
I have a customer form with a datacombo box on for occupation type. The occupation types are held within a lookup table containing lookupcode, description, attributeName. Within the customer table I hold the lookup code in a field called occupation which is linked to lookup table where attribute name = occupation.
When I show the customer form I use a recordset to populate the customer fields, how do I populate the datacombo properties within my code so when the user clicks on the box it shows all the relevant choices from the lookup table ?
I have done this before using the dataenvironment and setting the properties of the datacombo at design time but I don't want to set the properties at design time with this.
Any ideas would be much appreciated
Thanks
John
When I show the customer form I use a recordset to populate the customer fields, how do I populate the datacombo properties within my code so when the user clicks on the box it shows all the relevant choices from the lookup table ?
I have done this before using the dataenvironment and setting the properties of the datacombo at design time but I don't want to set the properties at design time with this.
Any ideas would be much appreciated
Thanks
John