Delphi 7 : Lookup Field?
Posted on 2007-11-19
I have an TDBGrid and would like the use to be able to pick from a dropdown in the list.
ColorID INT PK
VehicleID INT PK
When inserting a new row in the DBGrid for Table2, I would like to user to be able to select from dropdown in grid from all the available colorcodes and after selecting the ColorID should be saved in this table.
I managed to get what I am looking by means of creating a new lookup field on my ADOTable Component for Table2. But when inserting a new row I receive the following error:
"raised exception class EOleException with message 'An unkown error has occurred.' Process stopped...."