you could use the Dlookup Function the criteria is this
DLookup(expr, domain[, criteria])
Here is an example of how to use it
Me.TextBoxP/N = DLookup ("[P/N Field]", "P/N Table", "P/NTable.P/Nname = '" & Me.P/Nname "'"
Me.TextBoxP/N is the name of the text box you type the Computer part in.
"[P/N Field]" is the name of the field in the table that holds the Part Number.
"P/N Table" is the name of the Table that holds the Part Number.
the criteria part is as follows
P/NTable.P/Nname is the table name with the dot seperator and the field name that holds the part number.
Me.P/Nname is the name odf the text box that you type the name of the computer part.
Notice that everything in the DLookup Function is in String format, so it is important in the criteria section you get all of the quotes in the correct spot.
HTH Dave
ToeShot@Hotmail.com
Today Is Tomorrows Yesterday. So Why Wait