Auto Complete

I have successfully created an aut complete textbox. I wanted to show both a code and description from the liked table. I have done this by:
1 changing the variable that the text box is linked to to a local variable
2 setting this variable to the code and description in the Preparation
3 stripping out the description in the Save action
Is this the best way to achieve what I want or is there a simpler method?
Regards, Alan