Hi,
I am trying to acomplish the following using VB (rather unsuccessfully at present I might add!)
I have a combobox on a form that fetches values from the 'SalesCode' field of a lookup table. This lookup table also contains a 'Description' field. What I am after is when I select a value from the SalesCode combobox for it to return the appropriate description to a text box on the same form.
I have attached a much slimmed down copy of the database with only the fields in question.
I had originally tried to use a =dlookup on the after update event of the combobox but this only ever returned the first description in the lookup table regardless of the value in the combobox
I would very much appreciate any help with this.
Thanks
Dave
View attachment Converted.mdb
I am trying to acomplish the following using VB (rather unsuccessfully at present I might add!)
I have a combobox on a form that fetches values from the 'SalesCode' field of a lookup table. This lookup table also contains a 'Description' field. What I am after is when I select a value from the SalesCode combobox for it to return the appropriate description to a text box on the same form.
I have attached a much slimmed down copy of the database with only the fields in question.
I had originally tried to use a =dlookup on the after update event of the combobox but this only ever returned the first description in the lookup table regardless of the value in the combobox
I would very much appreciate any help with this.
Thanks
Dave
View attachment Converted.mdb