thanks so much for your help
for some strange reason it doesn't seem to wor
My table name is ItemsB
The Value I want to see is Price - from the field heading of that nam
The Combo Box is Combo6
Whenever the combo box entry changes, it should reflect the price associated with it
I was with you so far at
DLookup("Price", "ItemsBB", "combo62 = " & Me.combo62)
what does the "&Me mean
Help!!
----- Douglas J. Steele wrote: ----
DLookup is one approach: the other is to base the combo box on a query tha
contains both the Item and Price
In either case, you'll need to put code in the combo box's After Updat
event
Without knowing your table layouts, it's difficult to be able to giv
precise instructions
To use DLookup, you need to provide 3 pieces of information: the name of th
table you're trying to get a value from, the name of the field in that tabl
that has the value and (optionally) a WHERE clause to limit what's returned
Assuming you have a table named Price that has a PriceAmount field in it
and it has an ItemId field associated with each price, and that your Ite
combo box is named cboItem, the statement would look something lik
DLookup("PriceAmount", "Price", "ItemId = " & Me.cboItem
This assumes that ItemId is a numeric value. If it's a text value, you nee
to put quotes around it in the statement
DLookup("PriceAmount", "Price", "ItemId = " & Chr$(34) & Me.cboItem
Chr$(34)
In the other case I mentioned, you can have multiple columns in your comb
box. One value is going to be the bound field: that's what you get returne
when you simply refer to the combo box, as in Me.cboItem above. However, yo
can refer to the other values as Me.cboItem.Column(n), where n is the colum
number (starting at 0, not 1