#VBA_combobox
#DisplayTextboxfromCombobox
' Declare a variable to store the price
Dim varPrice As Variant
' Fetch the price from the Prices Table based on the selected item
varPrice = DLookup("Price", "Prices", "ItemID = " & Me.Combo0)
' Display the price in the text box
Me.txtPrice = varPrice