Hi -
I have a form that contains contract details from a service details table, and I have a separate table that contains a Product Catalogue. What I'm trying to do is use a lookup to populate the product item # and product item description from the product catalogue table.
On the form I inserted a combobox that pulls the item# and item description fields from the product catalogue. When I view the form I am able to use the drop down arrow to select the appropriate product item #; however I can't figure out how to pull the information for the product description. I know it is stored in the combobox because I can see it.
Can someone please assist me with this? Also to complicate things what I'd like to do is allow the user the ability to "edit" the item description if need be so there is an item description field in the service detail table that this information needs to be stored in.
I hope this makes sense.
Here is the code I have so far:
Private Sub Combo29_AfterUpdate()
Me.[Item Number] = Me.Combo29.Column(0)
Me.[Item Description] = Me.Combo29.Column(1)
End Sub
In the combobox I have the bound column set to 0 (the first column is also the primary key), the column count is 2.
Shouldn't this insert the item description from the combobox into the item description field on the service details table?
Thanks so much!
I have a form that contains contract details from a service details table, and I have a separate table that contains a Product Catalogue. What I'm trying to do is use a lookup to populate the product item # and product item description from the product catalogue table.
On the form I inserted a combobox that pulls the item# and item description fields from the product catalogue. When I view the form I am able to use the drop down arrow to select the appropriate product item #; however I can't figure out how to pull the information for the product description. I know it is stored in the combobox because I can see it.
Can someone please assist me with this? Also to complicate things what I'd like to do is allow the user the ability to "edit" the item description if need be so there is an item description field in the service detail table that this information needs to be stored in.
I hope this makes sense.
Here is the code I have so far:
Private Sub Combo29_AfterUpdate()
Me.[Item Number] = Me.Combo29.Column(0)
Me.[Item Description] = Me.Combo29.Column(1)
End Sub
In the combobox I have the bound column set to 0 (the first column is also the primary key), the column count is 2.
Shouldn't this insert the item description from the combobox into the item description field on the service details table?
Thanks so much!