The line: retvalBrowse = oPriceCode.SetBrowseFilter(PriceDiv&PriceCust) Should be: retvalBrowse = oPriceCode.SetBrowseFilter(Div&Cust) You get the current division and customer number into the variables Div and Cust. PriceDiv and PriceCust would not have a value so you are setting the filter to a null value and then the MoveFirst() is starting at the first record in the table every time.
↧